diff options
author | XU pengfei <xupengfei@nfschina.com> | 2023-02-17 04:14:21 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-02-20 19:52:49 +0300 |
commit | d695e44157c8da8d298295d1905428fb2495bc8b (patch) | |
tree | 07c7331c4d0a4b9ca24411f796fced864a825c3d /drivers/md/dm.c | |
parent | a2f998a78a425edde5a1a1973c1d4854fe9d019f (diff) | |
download | linux-d695e44157c8da8d298295d1905428fb2495bc8b.tar.xz |
dm: remove unnecessary (void*) conversion in event_callback()
Pointer variables of void * type do not require type cast.
Signed-off-by: XU pengfei <xupengfei@nfschina.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index adb002b8648d..eace45a18d45 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); |