From: Johan Hovold Date: Thu, 19 Mar 2015 15:51:13 +0000 (+0100) Subject: greybus: gpio: remove unnecessary explicit cast X-Git-Tag: v4.14-rc1~2366^2~378^2~21^2~1664 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bda7e2d1126f20c57f175c37c26c42b41ee4b64f;p=platform%2Fkernel%2Flinux-rpi.git greybus: gpio: remove unnecessary explicit cast Remove unnecessary explicit cast of line value. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c index 8384ad17..e0a871d 100644 --- a/drivers/staging/greybus/gpio.c +++ b/drivers/staging/greybus/gpio.c @@ -477,7 +477,7 @@ static int gb_gpio_get(struct gpio_chip *chip, unsigned offset) ret = gb_gpio_get_value_operation(gb_gpio_controller, which); if (ret) return ret; - return (int)gb_gpio_controller->lines[which].value; + return gb_gpio_controller->lines[which].value; } static void gb_gpio_set(struct gpio_chip *chip, unsigned offset, int value)