1
0
Fork 0

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 <sfr@canb.auug.org.au>
Cc: Richard Weinberger <richard@nod.at>
Cc: Artem Bityutskiy <dedekind1@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
alistair/sunxi64-5.4-dsi
Greg Kroah-Hartman 2019-07-04 08:32:10 +02:00
parent 62a6bc3a1e
commit d71cac5971
1 changed files with 1 additions and 1 deletions

View File

@ -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;