From bda7e2d1126f20c57f175c37c26c42b41ee4b64f Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Thu, 19 Mar 2015 16:51:13 +0100 Subject: [PATCH] greybus: gpio: remove unnecessary explicit cast Remove unnecessary explicit cast of line value. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5