diff options
author | XU pengfei <xupengfei@nfschina.com> | 2023-02-17 02:14:21 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-02-20 17:52:49 +0100 |
commit | d695e44157c8da8d298295d1905428fb2495bc8b (patch) | |
tree | 07c7331c4d0a4b9ca24411f796fced864a825c3d | |
parent | dm ioctl: remove unnecessary check when using dm_get_mdptr() (diff) | |
download | linux-d695e44157c8da8d298295d1905428fb2495bc8b.tar.xz linux-d695e44157c8da8d298295d1905428fb2495bc8b.zip |
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>
-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); |