Skip to content

Commit

Permalink
bcachefs: Fix -Wself-assign
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Nick Desaulniers <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
  • Loading branch information
nickdesaulniers authored and Kent Overstreet committed Oct 22, 2023
1 parent 3b59fbe commit 265cc42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/bcachefs/io_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,9 @@ case LOGGED_OP_FINSERT_shift_extents:
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);
Expand Down

0 comments on commit 265cc42

Please sign in to comment.