gpiolib: Unify expectations about ->request() returned value
[linux-block.git] / drivers / gpio / gpiolib-sysfs.c
index 728f6c6871824e27327a8341bbc014f815c3f480..26c5466b81799f39fc7c0b1add4a5fe586e0909c 100644 (file)
@@ -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;