summaryrefslogtreecommitdiff
path: root/drivers/md/dm-log-writes.c
diff options
context:
space:
mode:
authorYu Zhe <yuzhe@nfschina.com>2023-03-17 09:35:54 +0800
committerMike Snitzer <snitzer@kernel.org>2023-04-11 12:01:01 -0400
commit26cb62a285802ab6d26cdbf11305cd8516871d1a (patch)
treee2d159fc24d591e2404b836d6c78f3004b9fcb99 /drivers/md/dm-log-writes.c
parent990f61e43c4d3235486707568edf59d67488a575 (diff)
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-log-writes.c')
-rw-r--r--drivers/md/dm-log-writes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-log-writes.c b/drivers/md/dm-log-writes.c
index 0ce9b01d1393..6d7436d2fd7f 100644
--- a/drivers/md/dm-log-writes.c
+++ b/drivers/md/dm-log-writes.c
@@ -429,7 +429,7 @@ static inline sector_t logdev_last_sector(struct log_writes_c *lc)
static int log_writes_kthread(void *arg)
{
- struct log_writes_c *lc = (struct log_writes_c *)arg;
+ struct log_writes_c *lc = arg;
sector_t sector = 0;
while (!kthread_should_stop()) {