greybus: hid: fix success response being sent on errors
authorJohan Hovold <johan@hovoldconsulting.com>
Fri, 27 Mar 2015 11:45:45 +0000 (12:45 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 30 Mar 2015 13:17:37 +0000 (15:17 +0200)
commitecf47ab9c5ca1427baea7ab6d3226502d967f19d
treec300b161344ea7865d879c9761091e067f2c578e
parentb67f2d13db21de2fc948d6f7090fe2b9bae5d5bd
greybus: hid: fix success response being sent on errors

Make sure to only send a success response if we did not detect any
errors.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/hid.c