diff options
author | Yu Zhe <yuzhe@nfschina.com> | 2022-03-31 13:34:08 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-05-16 18:03:11 +0300 |
commit | 0d031dc4aa05819beb8b9188f4306a3f2bc17f55 (patch) | |
tree | 72f5e3a29736401fc2cbfa46fda812acd6b2a77c /fs/btrfs/relocation.c | |
parent | 1a42daab11d39f567bb2c6b2b7e551e73abb3512 (diff) | |
download | linux-0d031dc4aa05819beb8b9188f4306a3f2bc17f55.tar.xz |
btrfs: remove unnecessary type casts
Explicit type casts are not necessary when it's void* to another pointer
type.
Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
-rw-r--r-- | fs/btrfs/relocation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c index 79af494a316a..50bdd82682fa 100644 --- a/fs/btrfs/relocation.c +++ b/fs/btrfs/relocation.c @@ -362,7 +362,7 @@ struct btrfs_root *find_reloc_root(struct btrfs_fs_info *fs_info, u64 bytenr) rb_node = rb_simple_search(&rc->reloc_root_tree.rb_root, bytenr); if (rb_node) { node = rb_entry(rb_node, struct mapping_node, rb_node); - root = (struct btrfs_root *)node->data; + root = node->data; } spin_unlock(&rc->reloc_root_tree.lock); return btrfs_grab_root(root); |