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/scrub.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/scrub.c')
-rw-r--r-- | fs/btrfs/scrub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 96a8ad3bc1dd..d07059a1f747 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -2790,7 +2790,7 @@ static void scrub_parity_bio_endio_worker(struct btrfs_work *work) static void scrub_parity_bio_endio(struct bio *bio) { - struct scrub_parity *sparity = (struct scrub_parity *)bio->bi_private; + struct scrub_parity *sparity = bio->bi_private; struct btrfs_fs_info *fs_info = sparity->sctx->fs_info; if (bio->bi_status) |