[for,GregKH] ARM: omap1: remove unused variable

Message ID 20190617125521.1553103-1-arnd@arndb.de
State New
Headers show
Series
  • [for,GregKH] ARM: omap1: remove unused variable
Related show

Commit Message

Arnd Bergmann June 17, 2019, 12:55 p.m.
The cleanup of the debugfs functions left one variable behind that
should now be removed as well:

arch/arm/mach-omap1/clock.c:1008:6: error: unused variable 'err' [-Werror,-Wunused-variable]

Fixes: d5ddd5a51726 ("arm: omap1: no need to check return value of debugfs_create functions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

---
 arch/arm/mach-omap1/clock.c | 1 -
 1 file changed, 1 deletion(-)

-- 
2.20.0

Comments

Greg Kroah-Hartman June 17, 2019, 1:07 p.m. | #1
On Mon, Jun 17, 2019 at 02:55:02PM +0200, Arnd Bergmann wrote:
> The cleanup of the debugfs functions left one variable behind that

> should now be removed as well:

> 

> arch/arm/mach-omap1/clock.c:1008:6: error: unused variable 'err' [-Werror,-Wunused-variable]

> 

> Fixes: d5ddd5a51726 ("arm: omap1: no need to check return value of debugfs_create functions")

> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

> ---

>  arch/arm/mach-omap1/clock.c | 1 -

>  1 file changed, 1 deletion(-)


Oops, sorry about that, odd that 0-day never reported it :(

I'll go queue this up now, thanks.

greg k-h

Patch

diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c
index 3d7ab2bcf46c..a5a50efc8e17 100644
--- a/arch/arm/mach-omap1/clock.c
+++ b/arch/arm/mach-omap1/clock.c
@@ -1005,7 +1005,6 @@  static void clk_debugfs_register_one(struct clk *c)
 
 static void clk_debugfs_register(struct clk *c)
 {
-	int err;
 	struct clk *pa = c->parent;
 
 	if (pa && !pa->dent)