From 265cc423155d56030e44068680085adb59800326 Mon Sep 17 00:00:00 2001 From: Nick Desaulniers Date: Tue, 19 Sep 2023 13:38:31 -0700 Subject: bcachefs: Fix -Wself-assign Fixes the following observed error reported by Nathan on IRC. fs/bcachefs/io_misc.c:467:6: error: explicitly assigning value of variable of type 'int' to itself [-Werror,-Wself-assign] 467 | ret = ret; | ~~~ ^ ~~~ Reported-by: Nathan Chancellor Signed-off-by: Nick Desaulniers Signed-off-by: Kent Overstreet --- fs/bcachefs/io_misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fs/bcachefs/io_misc.c') diff --git a/fs/bcachefs/io_misc.c b/fs/bcachefs/io_misc.c index 668493bcfe36..32432bdddac4 100644 --- a/fs/bcachefs/io_misc.c +++ b/fs/bcachefs/io_misc.c @@ -462,9 +462,9 @@ btree_err: bch2_logged_op_update(trans, &op->k_i)); } - fallthrough; + break; case LOGGED_OP_FINSERT_finish: - ret = ret; + break; } err: bch2_logged_op_finish(trans, op_k); -- cgit v1.2.3