Skip to content

Commit d695e44

Browse files
xupf1Mike Snitzer
authored andcommitted
dm: remove unnecessary (void*) conversion in event_callback()
Pointer variables of void * type do not require type cast. Signed-off-by: XU pengfei <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent a2f998a commit d695e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2144,7 +2144,7 @@ static void event_callback(void *context)
21442144
{
21452145
unsigned long flags;
21462146
LIST_HEAD(uevents);
2147-
struct mapped_device *md = (struct mapped_device *) context;
2147+
struct mapped_device *md = context;
21482148

21492149
spin_lock_irqsave(&md->uevent_lock, flags);
21502150
list_splice_init(&md->uevent_list, &uevents);

0 commit comments

Comments
 (0)