commit | f0b7866a02370d9a03b0be497b9f88d982b8b67d | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Mon May 04 17:10:36 2015 +0200 |
committer | Linus Walleij <linus.walleij@linaro.org> | Tue May 12 10:47:08 2015 +0200 |
tree | b739d3238b374d5e9b89676d01d1eefb442e659e | |
parent | 54d9acd7540995b06a47974e3d06da7f68df9d4a [diff] |
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>