diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-04-17 00:34:53 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:01 +0300 |
commit | f02810a1a4cdcf643f6149396769e0fb38a94a78 (patch) | |
tree | 7068f9b18e5aff599b4008b26b14553d286d5d9e | |
parent | f24fab9cbad1838fc4356e9e8b861a19cf055c3f (diff) | |
download | linux-f02810a1a4cdcf643f6149396769e0fb38a94a78.tar.xz |
bcachefs: Fix an unused var warning in userspace
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/fsck.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index 4a48ef5d1bfb..cfe606342032 100644 --- a/fs/bcachefs/fsck.c +++ b/fs/bcachefs/fsck.c @@ -159,13 +159,10 @@ static int reattach_inode(struct btree_trans *trans, struct bch_inode_unpacked *lostfound, u64 inum) { - struct bch_fs *c = trans->c; - int ret; - - ret = __bch2_trans_do(trans, NULL, NULL, BTREE_INSERT_LAZY_RW, + int ret = __bch2_trans_do(trans, NULL, NULL, BTREE_INSERT_LAZY_RW, __reattach_inode(trans, lostfound, inum)); if (ret) - bch_err(c, "error %i reattaching inode %llu", ret, inum); + bch_err(trans->c, "error %i reattaching inode %llu", ret, inum); return ret; } |