summaryrefslogtreecommitdiff
path: root/fs/bcachefs/super-io.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2024-02-21 11:52:03 +0000
committerKent Overstreet <kent.overstreet@linux.dev>2024-03-13 21:22:25 -0400
commit150194cdcb6b4305be41cd8af7a42dd2d1457ae1 (patch)
tree72e274d04603a38f099f9dbae860f3263d526bf0 /fs/bcachefs/super-io.c
parentc7cad231e83606a3ad627d5c4503272435c962a4 (diff)
bcachefs: remove redundant assignment to variable ret
Variable ret is being assigned a value that is never read, it is being re-assigned a couple of statements later on. The assignment is redundant and can be removed. Cleans up clang scan build warning: fs/bcachefs/super-io.c:806:2: warning: Value stored to 'ret' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super-io.c')
-rw-r--r--fs/bcachefs/super-io.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c
index a3a9e85ab03c..38a5073202c5 100644
--- a/fs/bcachefs/super-io.c
+++ b/fs/bcachefs/super-io.c
@@ -804,7 +804,6 @@ got_super:
goto err;
}
- ret = 0;
sb->have_layout = true;
ret = bch2_sb_validate(sb, &err, READ);