Skip to content

Commit

Permalink
ubifs: fix build warning after debugfs cleanup patch
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Richard Weinberger <[email protected]>
Cc: Artem Bityutskiy <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
gregkh committed Jul 4, 2019
1 parent 62a6bc3 commit d71cac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ubifs/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d71cac5

Please sign in to comment.