projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83d9cdd
)
greybus: gpio: remove unnecessary explicit cast
author
Johan Hovold
<johan@hovoldconsulting.com>
Thu, 19 Mar 2015 15:51:13 +0000
(16:51 +0100)
committer
Greg 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/gpio.c
b/drivers/staging/greybus/gpio.c
index 8384ad17e9befe171c192ba089135d6fbd7c0189..e0a871d376550cc6e26eaccdb7bf1c6423fc42e1 100644
(file)
--- 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)