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>
This commit is contained in:
Nick Desaulniers 2023-09-19 13:38:31 -07:00 committed by Kent Overstreet
parent 3b59fbec86
commit 265cc42315
1 changed files with 2 additions and 2 deletions

View File

@ -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);