summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/io_misc.c
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2023-09-19 22:38:31 +0200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 23:10:14 +0200
commit265cc423155d56030e44068680085adb59800326 (patch)
tree616ab1330c8d67c410c3f543f2e4822b24f21831 /fs/bcachefs/io_misc.c
parentbcachefs: Remove duplicate include (diff)
downloadlinux-265cc423155d56030e44068680085adb59800326.tar.xz
linux-265cc423155d56030e44068680085adb59800326.zip
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 <nathan@kernel.org> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io_misc.c')
-rw-r--r--fs/bcachefs/io_misc.c4
1 files changed, 2 insertions, 2 deletions
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);