ubifs: Remove unnecessary assignment
authorStefan Agner <stefan@agner.ch>
Sun, 11 Feb 2018 22:17:36 +0000 (23:17 +0100)
committerNolen Johnson <johnsonnolen@gmail.com>
Tue, 21 Dec 2021 18:35:25 +0000 (13:35 -0500)
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>
Change-Id: I282cad6e2d0c820e7dbece2f61ce046646aac3c9

fs/ubifs/scan.c

index aab87340d3de8883c12bd888056d51efe454b9c8..16f03d9929e5ed7d90366992726793db16d1177d 100644 (file)
@@ -175,7 +175,6 @@ struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum,
 void ubifs_end_scan(const struct ubifs_info *c, struct ubifs_scan_leb *sleb,
                    int lnum, int offs)
 {
-       lnum = lnum;
        dbg_scan("stop scanning LEB %d at offset %d", lnum, offs);
        ubifs_assert(offs % c->min_io_size == 0);