Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acc68b0e authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Linus Walleij
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent db16bad6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);