]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: gpio: remove unnecessary explicit cast
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 19 Mar 2015 15:51:13 +0000 (16:51 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 19 Mar 2015 16:29:40 +0000 (17:29 +0100)
Remove unnecessary explicit cast of line value.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/gpio.c

index 8384ad17e9befe171c192ba089135d6fbd7c0189..e0a871d376550cc6e26eaccdb7bf1c6423fc42e1 100644 (file)
@@ -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)