greybus: camera: Add missing return value
authorJacopo Mondi <jacopo.mondi@linaro.org>
Fri, 5 Feb 2016 08:35:33 +0000 (09:35 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 6 Feb 2016 00:37:34 +0000 (16:37 -0800)
Add missing return value assignement when changing unipro power mode to
PWM-G1.

Signed-off-by: Jacopo Mondi <jacopo.mondi@linaro.org>
Reviewed-by: Gjorgji Rosikopulos <grosikopulos@mm-sol.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/camera.c

index 90eef23bf654f839f3306e2e82b01f7b1ccac208..3f31a2fd7e5e31fe799a9afa6332284b704fbb93 100644 (file)
@@ -296,7 +296,7 @@ set_unipro_slow_mode:
                goto done;
        }
 
-       gb_svc_intf_set_power_mode(svc, svc->ap_intf_id,
+       ret = gb_svc_intf_set_power_mode(svc, svc->ap_intf_id,
                                   GB_SVC_UNIPRO_HS_SERIES_A,
                                   GB_SVC_UNIPRO_SLOW_AUTO_MODE,
                                   1, 2,
@@ -307,7 +307,6 @@ set_unipro_slow_mode:
                gcam_err(gcam, "can't take AP link to PWM-G1 auto: %d\n",
                         ret);
 
-
 done:
        kfree(req);
        kfree(resp);