aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorYu Zhe <yuzhe@nfschina.com>2022-03-31 03:34:08 -0700
committerDavid Sterba <dsterba@suse.com>2022-05-16 17:03:11 +0200
commit0d031dc4aa05819beb8b9188f4306a3f2bc17f55 (patch)
tree72f5e3a29736401fc2cbfa46fda812acd6b2a77c /fs/btrfs/volumes.c
parentbtrfs: expand subpage support to any PAGE_SIZE > 4K (diff)
downloadwireguard-linux-0d031dc4aa05819beb8b9188f4306a3f2bc17f55.tar.xz
wireguard-linux-0d031dc4aa05819beb8b9188f4306a3f2bc17f55.zip
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/volumes.c')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 04809d406813..8a3f1bd77b71 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -8266,7 +8266,7 @@ bool btrfs_pinned_by_swapfile(struct btrfs_fs_info *fs_info, void *ptr)
static int relocating_repair_kthread(void *data)
{
- struct btrfs_block_group *cache = (struct btrfs_block_group *)data;
+ struct btrfs_block_group *cache = data;
struct btrfs_fs_info *fs_info = cache->fs_info;
u64 target;
int ret = 0;