From d695e44157c8da8d298295d1905428fb2495bc8b Mon Sep 17 00:00:00 2001 From: XU pengfei Date: Fri, 17 Feb 2023 09:14:21 +0800 Subject: [PATCH] dm: remove unnecessary (void*) conversion in event_callback() Pointer variables of void * type do not require type cast. Signed-off-by: XU pengfei Signed-off-by: Mike Snitzer --- 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 adb002b8648df..eace45a18d456 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -2144,7 +2144,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.30.2