From: Johan Hovold Date: Thu, 19 Mar 2015 15:51:13 +0000 (+0100) Subject: greybus: gpio: remove unnecessary explicit cast X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bda7e2d1126f20c57f175c37c26c42b41ee4b64f;p=openwrt%2Fstaging%2Fblogic.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 8384ad17e9be..e0a871d37655 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)