From: Colin Ian King Date: Wed, 21 Feb 2024 11:52:03 +0000 (+0000) Subject: bcachefs: remove redundant assignment to variable ret X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=150194cdcb6b4305be41cd8af7a42dd2d1457ae1;p=linux.git 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 Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index a3a9e85ab03c0..38a5073202c57 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);