diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-20 07:32:20 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:10:14 +0200 |
commit | 40a53b92150fe9576538f775138413c40cdb30cf (patch) | |
tree | e1cb18facfe52e36dfa93ffd5485a29a73967c0a /fs/bcachefs/move.c | |
parent | bcachefs: Minor bch2_btree_node_get() smatch fixes (diff) | |
download | linux-40a53b92150fe9576538f775138413c40cdb30cf.tar.xz linux-40a53b92150fe9576538f775138413c40cdb30cf.zip |
bcachefs: More minor smatch fixes
- fix a few uninitialized return values
- return a proper error code in lookup_lostfound()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/move.c')
-rw-r--r-- | fs/bcachefs/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/move.c b/fs/bcachefs/move.c index c1aa76f9f845..39a14e321680 100644 --- a/fs/bcachefs/move.c +++ b/fs/bcachefs/move.c @@ -627,7 +627,7 @@ int bch2_move_data(struct bch_fs *c, { struct moving_context ctxt; enum btree_id id; - int ret; + int ret = 0; bch2_moving_ctxt_init(&ctxt, c, rate, stats, wp, wait_on_copygc); |