summaryrefslogtreecommitdiff
path: root/fs/bcachefs/io_misc.c
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2023-09-19 13:38:31 -0700
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:10:14 -0400
commit265cc423155d56030e44068680085adb59800326 (patch)
tree616ab1330c8d67c410c3f543f2e4822b24f21831 /fs/bcachefs/io_misc.c
parent3b59fbec86e3cda0fae2ad15139ac458e024fab1 (diff)
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);