[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230217011420.6613-1-xupengfei@nfschina.com>
Date: Fri, 17 Feb 2023 09:14:21 +0800
From: XU pengfei <xupengfei@...china.com>
To: agk@...hat.com, snitzer@...nel.org, dm-devel@...hat.com
Cc: linux-kernel@...r.kernel.org, XU pengfei <xupengfei@...china.com>
Subject: [PATCH 1/1] dm: remove unnecessary (void*) conversions
Pointer variables of void * type do not require type cast.
Signed-off-by: XU pengfei <xupengfei@...china.com>
---
drivers/md/dm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index b424a6ee27ba..669f2821376a 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -2139,7 +2139,7 @@ static void event_callback(void *context)
{
unsigned long flags;
LIST_HEAD(uevents);
- struct mapped_device *md = (struct mapped_device *) context;
+ struct mapped_device *md = context;
spin_lock_irqsave(&md->uevent_lock, flags);
list_splice_init(&md->uevent_list, &uevents);
--
2.18.2
Powered by blists - more mailing lists