diff options
author | Yu Zhe <yuzhe@nfschina.com> | 2023-03-17 02:35:54 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-04-11 18:01:01 +0200 |
commit | 26cb62a285802ab6d26cdbf11305cd8516871d1a (patch) | |
tree | e2d159fc24d591e2404b836d6c78f3004b9fcb99 /drivers/md/dm-linear.c | |
parent | dm mirror: add DMERR message if alloc_workqueue fails (diff) | |
download | linux-26cb62a285802ab6d26cdbf11305cd8516871d1a.tar.xz linux-26cb62a285802ab6d26cdbf11305cd8516871d1a.zip |
dm: remove unnecessary (void*) conversions
Pointer variables of void * type do not require type cast.
Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-linear.c')
-rw-r--r-- | drivers/md/dm-linear.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index 3e622dcc9dbd..f4448d520ee9 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c @@ -72,7 +72,7 @@ bad: static void linear_dtr(struct dm_target *ti) { - struct linear_c *lc = (struct linear_c *) ti->private; + struct linear_c *lc = ti->private; dm_put_device(ti, lc->dev); kfree(lc); @@ -98,7 +98,7 @@ static int linear_map(struct dm_target *ti, struct bio *bio) static void linear_status(struct dm_target *ti, status_type_t type, unsigned int status_flags, char *result, unsigned int maxlen) { - struct linear_c *lc = (struct linear_c *) ti->private; + struct linear_c *lc = ti->private; size_t sz = 0; switch (type) { @@ -120,7 +120,7 @@ static void linear_status(struct dm_target *ti, status_type_t type, static int linear_prepare_ioctl(struct dm_target *ti, struct block_device **bdev) { - struct linear_c *lc = (struct linear_c *) ti->private; + struct linear_c *lc = ti->private; struct dm_dev *dev = lc->dev; *bdev = dev->bdev; |