ubifs: Remove redundant assignment to pointer fname
authorColin Ian King <colin.king@canonical.com>
Fri, 5 Jul 2019 11:05:43 +0000 (12:05 +0100)
committerRichard Weinberger <richard@nod.at>
Sun, 15 Sep 2019 19:55:12 +0000 (21:55 +0200)
The pointer fname is being assigned with a value that is never
read because the function returns after the assignment. The assignment
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/debug.c

index a5f10d7..e4b5278 100644 (file)
@@ -2817,7 +2817,6 @@ void dbg_debugfs_init_fs(struct ubifs_info *c)
                     c->vi.ubi_num, c->vi.vol_id);
        if (n == UBIFS_DFS_DIR_LEN) {
                /* The array size is too small */
-               fname = UBIFS_DFS_DIR_NAME;
                return;
        }