summaryrefslogtreecommitdiff
path: root/fs/btrfs/subpage.c
diff options
context:
space:
mode:
authorYu Zhe <yuzhe@nfschina.com>2022-03-31 13:34:08 +0300
committerDavid Sterba <dsterba@suse.com>2022-05-16 18:03:11 +0300
commit0d031dc4aa05819beb8b9188f4306a3f2bc17f55 (patch)
tree72f5e3a29736401fc2cbfa46fda812acd6b2a77c /fs/btrfs/subpage.c
parent1a42daab11d39f567bb2c6b2b7e551e73abb3512 (diff)
downloadlinux-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/subpage.c')
-rw-r--r--fs/btrfs/subpage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/subpage.c b/fs/btrfs/subpage.c
index a4980659e3c3..a105b291444f 100644
--- a/fs/btrfs/subpage.c
+++ b/fs/btrfs/subpage.c
@@ -150,7 +150,7 @@ void btrfs_detach_subpage(const struct btrfs_fs_info *fs_info,
if (!btrfs_is_subpage(fs_info, page) || !PagePrivate(page))
return;
- subpage = (struct btrfs_subpage *)detach_page_private(page);
+ subpage = detach_page_private(page);
ASSERT(subpage);
btrfs_free_subpage(subpage);
}