projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gpiolib: Unify expectations about ->request() returned value
[linux-block.git]
/
drivers
/
gpio
/
gpiolib-sysfs.c
diff --git
a/drivers/gpio/gpiolib-sysfs.c
b/drivers/gpio/gpiolib-sysfs.c
index 728f6c6871824e27327a8341bbc014f815c3f480..26c5466b81799f39fc7c0b1add4a5fe586e0909c 100644
(file)
--- a/
drivers/gpio/gpiolib-sysfs.c
+++ b/
drivers/gpio/gpiolib-sysfs.c
@@
-476,7
+476,7
@@
static ssize_t export_store(struct class *class,
*/
status = gpiod_request(desc, "sysfs");
- if (status
< 0
) {
+ if (status) {
if (status == -EPROBE_DEFER)
status = -ENODEV;
goto done;