summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/connection.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2015-08-11 07:36:16 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2015-08-11 19:34:34 -0700
commitbf81454738990e7acd089e1b8aac8bab6a54637f (patch)
tree3222616011f72405efd637b1fda77e64beee17dc /drivers/staging/greybus/connection.c
parentb9938c49131f1d2c65e8783a5a17ff6a96d9ce89 (diff)
downloadlinux-stable-bf81454738990e7acd089e1b8aac8bab6a54637f.tar.gz
linux-stable-bf81454738990e7acd089e1b8aac8bab6a54637f.tar.bz2
linux-stable-bf81454738990e7acd089e1b8aac8bab6a54637f.zip
greybus: protocol: Remove unnecessary params of gb_protocol_get_version()
Some of the parameters are not really required, drop them. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r--drivers/staging/greybus/connection.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c
index b1f1df81be50..88383b6e603f 100644
--- a/drivers/staging/greybus/connection.c
+++ b/drivers/staging/greybus/connection.c
@@ -387,12 +387,7 @@ int gb_connection_init(struct gb_connection *connection)
* this for SVC as that is initiated by the SVC.
*/
if (connection->hd_cport_id != GB_SVC_CPORT_ID) {
- struct gb_protocol_version_response response;
-
- ret = gb_protocol_get_version(connection,
- GB_REQUEST_TYPE_PROTOCOL_VERSION,
- NULL, 0, &response,
- connection->protocol->major);
+ ret = gb_protocol_get_version(connection, NULL, 0);
if (ret) {
dev_err(&connection->dev,
"Failed to get version CPort-%d (%d)\n",