diff options
author | Stefan Agner <stefan@agner.ch> | 2018-02-11 17:17:36 -0500 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-04-04 17:48:10 -0400 |
commit | ae4c8081eb77bc82ac5ac8a7d55abea6f98e0209 (patch) | |
tree | 3b0c508342834c94dd3bb3fd39f6ac98c09d5ac0 /fs | |
parent | 78a8dfbabbece22bee58ac4cb26cab10e7a19c5d (diff) |
ubifs: remove unnecessary assignment
Assigning a value of a variable to itself is not useful. This
fixes a warning shown when using clang:
warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign]
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ubifs/scan.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ubifs/scan.c b/fs/ubifs/scan.c index aab87340d3de..16f03d9929e5 100644 --- a/fs/ubifs/scan.c +++ b/fs/ubifs/scan.c | |||
@@ -175,7 +175,6 @@ struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum, | |||
175 | void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, | 175 | void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb, |
176 | int lnum, int offs) | 176 | int lnum, int offs) |
177 | { | 177 | { |
178 | lnum = lnum; | ||
179 | dbg_scan("stop scanning LEB %d at offset %d", lnum, offs); | 178 | dbg_scan("stop scanning LEB %d at offset %d", lnum, offs); |
180 | ubifs_assert(offs % c->min_io_size == 0); | 179 | ubifs_assert(offs % c->min_io_size == 0); |
181 | 180 | ||