summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/es2.c
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2016-07-14 14:24:18 -0500
committerGreg Kroah-Hartman <gregkh@google.com>2016-07-15 09:14:27 +0900
commit99ade1766dbd11652905ec91219a643992cb3c18 (patch)
tree60f6289fb6df21b7fa23fa832882c0b8e4b01ad7 /drivers/staging/greybus/es2.c
parente854ff58ed7011f73c7cdfcb7966ffa9c103571e (diff)
greybus: get rid of a compile warning
The compiler has no way of knowing whether a called function will actually assign something to the object whose address is passed as an argument. So it must assume it won't happen, and this leads to a compile warning. Fix this. Signed-off-by: Alex Elder <elder@linaro.org> Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/es2.c')
-rw-r--r--drivers/staging/greybus/es2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c
index 7961622103be..f64dbcb5e554 100644
--- a/drivers/staging/greybus/es2.c
+++ b/drivers/staging/greybus/es2.c
@@ -611,7 +611,7 @@ static int cport_reset(struct gb_host_device *hd, u16 cport_id)
struct usb_device *udev = es2->usb_dev;
struct arpc_cport_reset req;
int retval;
- int result;
+ int result = 0;
switch (cport_id) {
case GB_SVC_CPORT_ID: