]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: sysfs: remove redundant export tests
authorJohan Hovold <johan@kernel.org>
Mon, 4 May 2015 15:10:36 +0000 (17:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2015 08:47:08 +0000 (10:47 +0200)
commit187e25ab4f9b2aad2d81db7cc6102cea0280dcf9
treeb739d3238b374d5e9b89676d01d1eefb442e659e
parent4616839346281eb9aae428d3cadf5e4943d82717
gpio: sysfs: remove redundant export tests

The attribute operations will never be called for an unregistered device
so remove redundant checks for FLAG_EXPORT.

Note that kernfs will also guarantee that any active sysfs operation has
finished before the attribute is removed during deregistration.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-sysfs.c