Commit aead3428 authored by Colin Ian King's avatar Colin Ian King Committed by Kent Overstreet

bcachefs: remove redundant variable tmp

The variable tmp is being assigned a value but it isn't being
read afterwards. The assignment is redundant and so tmp can be
removed.

Cleans up clang scan build warning:
warning: Although the value stored to 'ret' is used in the enclosing
expression, the value is never actually read from 'ret'
[deadcode.DeadStores]
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent b97de453
...@@ -385,7 +385,6 @@ static int bch2_rebalance_thread(void *arg) ...@@ -385,7 +385,6 @@ static int bch2_rebalance_thread(void *arg)
struct bch_fs *c = arg; struct bch_fs *c = arg;
struct bch_fs_rebalance *r = &c->rebalance; struct bch_fs_rebalance *r = &c->rebalance;
struct moving_context ctxt; struct moving_context ctxt;
int ret;
set_freezable(); set_freezable();
...@@ -393,8 +392,7 @@ static int bch2_rebalance_thread(void *arg) ...@@ -393,8 +392,7 @@ static int bch2_rebalance_thread(void *arg)
writepoint_ptr(&c->rebalance_write_point), writepoint_ptr(&c->rebalance_write_point),
true); true);
while (!kthread_should_stop() && while (!kthread_should_stop() && !do_rebalance(&ctxt))
!(ret = do_rebalance(&ctxt)))
; ;
bch2_moving_ctxt_exit(&ctxt); bch2_moving_ctxt_exit(&ctxt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment