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)
commitf0b7866a02370d9a03b0be497b9f88d982b8b67d
treeb739d3238b374d5e9b89676d01d1eefb442e659e
parent54d9acd7540995b06a47974e3d06da7f68df9d4a
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