From d71cac5971192049a3a375a2e68b63f4092bd6a1 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Thu, 4 Jul 2019 08:32:10 +0200 Subject: ubifs: fix build warning after debugfs cleanup patch Stephen writes: After merging the driver-core tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: fs/ubifs/debug.c: In function 'dbg_debugfs_init_fs': fs/ubifs/debug.c:2812:6: warning: unused variable 'err' [-Wunused-variable] int err, n; ^~~ So fix this up properly. Reported-by: Stephen Rothwell Cc: Richard Weinberger Cc: Artem Bityutskiy Cc: Adrian Hunter Cc: linux-mtd@lists.infradead.org Signed-off-by: Greg Kroah-Hartman --- fs/ubifs/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index 57e6fcb043ca..baae6eceabac 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c @@ -2821,7 +2821,7 @@ static const struct file_operations dfs_fops = { */ void dbg_debugfs_init_fs(struct ubifs_info *c) { - int err, n; + int n; const char *fname; struct ubifs_debug_info *d = c->dbg; -- cgit v1.2.1