diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-18 17:50:45 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2019-06-27 15:56:52 +0100 |
commit | acc68b0e70e8c9cb4355f9cafeaf51a441f64cc2 (patch) | |
tree | bcaf1c83d909a492bc6369519052bd61b27ccf61 /drivers/gpio | |
parent | db16bad6efd9ce362be3d67cb05c3f70eb5a0dd3 (diff) | |
download | linux-acc68b0e70e8c9cb4355f9cafeaf51a441f64cc2.tar.gz linux-acc68b0e70e8c9cb4355f9cafeaf51a441f64cc2.tar.bz2 linux-acc68b0e70e8c9cb4355f9cafeaf51a441f64cc2.zip |
gpio: No need to cast away return value of debugfs_create_file()
It is fine to ignore the return value (and encouraged), so need to cast
away the return value, you will not get a build warning at all.
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpiolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 71cd685ed6c4..12bd0f094abc 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -4802,8 +4802,8 @@ static const struct file_operations gpiolib_operations = { static int __init gpiolib_debugfs_init(void) { /* /sys/kernel/debug/gpio */ - (void) debugfs_create_file("gpio", S_IFREG | S_IRUGO, - NULL, NULL, &gpiolib_operations); + debugfs_create_file("gpio", S_IFREG | S_IRUGO, NULL, NULL, + &gpiolib_operations); return 0; } subsys_initcall(gpiolib_debugfs_init); |