Merge tag 'backlight-for-linus-4.8' of git://git.kernel.org/pub/scm/linux/kernel...
[deliverable/linux.git] / drivers / leds / led-triggers.c
index 55fa65e1ae030dc2840d7d53e74975f4c6eaf311..c92702a684cedeaad3d2932772e62cf971c98037 100644 (file)
@@ -60,6 +60,8 @@ ssize_t led_trigger_store(struct device *dev, struct device_attribute *attr,
                        goto unlock;
                }
        }
+       /* we come here only if buf matches no trigger */
+       ret = -EINVAL;
        up_read(&triggers_list_lock);
 
 unlock:
This page took 0.024033 seconds and 5 git commands to generate.