Commit bda7e2d1 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: gpio: remove unnecessary explicit cast

Remove unnecessary explicit cast of line value.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 83d9cddb
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment