gpio: tegra: No need to cast away return value of debugfs_create_file()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2019 15:50:46 +0000 (17:50 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 27 Jun 2019 14:56:52 +0000 (15:56 +0100)
It is fine to ignore the return value (and encouraged),
so no 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
Cc: linux-tegra@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra.c

index 6d9b6906b9d01b6570866e8ee4ab12da3efbc115..a54bba1bda6cad73182a6033367862364bd98fa9 100644 (file)
@@ -550,8 +550,8 @@ DEFINE_SHOW_ATTRIBUTE(tegra_dbg_gpio);
 
 static void tegra_gpio_debuginit(struct tegra_gpio_info *tgi)
 {
-       (void) debugfs_create_file("tegra_gpio", 0444,
-                                  NULL, tgi, &tegra_dbg_gpio_fops);
+       debugfs_create_file("tegra_gpio", 0444, NULL, tgi,
+                           &tegra_dbg_gpio_fops);
 }
 
 #else