summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-07-05 07:05:43 -0400
committerRichard Weinberger <richard@nod.at>2019-09-15 15:55:12 -0400
commitcbc898d52cd11b23fd7c8079becbd8be742e78ce (patch)
tree6604d33546c987e07b117db7dc463cb22a6eea76
parent089cf7f6ecb266b6a4164919a2e69bd2f938374a (diff)
ubifs: Remove redundant assignment to pointer fname
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>
-rw-r--r--fs/ubifs/debug.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index a5f10d79e0dd..e4b52783819d 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -2817,7 +2817,6 @@ void dbg_debugfs_init_fs(struct ubifs_info *c)
2817 c->vi.ubi_num, c->vi.vol_id); 2817 c->vi.ubi_num, c->vi.vol_id);
2818 if (n == UBIFS_DFS_DIR_LEN) { 2818 if (n == UBIFS_DFS_DIR_LEN) {
2819 /* The array size is too small */ 2819 /* The array size is too small */
2820 fname = UBIFS_DFS_DIR_NAME;
2821 return; 2820 return;
2822 } 2821 }
2823 2822