Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Kent Overstreet
150194cd c7cad231

-1
-1
fs/bcachefs/super-io.c
··· 804 804 goto err; 805 805 } 806 806 807 - ret = 0; 808 807 sb->have_layout = true; 809 808 810 809 ret = bch2_sb_validate(sb, &err, READ);