greybus: gpio: remove unnecessary explicit cast

Remove unnecessary explicit cast of line value.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Johan Hovold 2015-03-19 16:51:13 +01:00 committed by Greg Kroah-Hartman
parent 83d9cddb85
commit bda7e2d112

View 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); ret = gb_gpio_get_value_operation(gb_gpio_controller, which);
if (ret) if (ret)
return 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) static void gb_gpio_set(struct gpio_chip *chip, unsigned offset, int value)