diff options
author | Yu Zhe <yuzhe@nfschina.com> | 2023-03-17 09:35:54 +0800 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-04-11 12:01:01 -0400 |
commit | 26cb62a285802ab6d26cdbf11305cd8516871d1a (patch) | |
tree | e2d159fc24d591e2404b836d6c78f3004b9fcb99 /drivers/md/dm-stripe.c | |
parent | 990f61e43c4d3235486707568edf59d67488a575 (diff) | |
download | linux-26cb62a285802ab6d26cdbf11305cd8516871d1a.tar.gz linux-26cb62a285802ab6d26cdbf11305cd8516871d1a.tar.bz2 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-stripe.c')
-rw-r--r-- | drivers/md/dm-stripe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index 8d6951157106..e2854a3cbd28 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c @@ -189,7 +189,7 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv) static void stripe_dtr(struct dm_target *ti) { unsigned int i; - struct stripe_c *sc = (struct stripe_c *) ti->private; + struct stripe_c *sc = ti->private; for (i = 0; i < sc->stripes; i++) dm_put_device(ti, sc->stripe[i].dev); @@ -360,7 +360,7 @@ static size_t stripe_dax_recovery_write(struct dm_target *ti, pgoff_t pgoff, static void stripe_status(struct dm_target *ti, status_type_t type, unsigned int status_flags, char *result, unsigned int maxlen) { - struct stripe_c *sc = (struct stripe_c *) ti->private; + struct stripe_c *sc = ti->private; unsigned int sz = 0; unsigned int i; |