[PATCH] drivers/md/dm-kcopyd.c: remove unnecessary (void*) conversions

From: Dong Chuanjian
Date: Tue Aug 09 2022 - 05:23:21 EST


remove unnecessary void* type casting

Signed-off-by: Dong Chuanjian <chuanjian@xxxxxxxxxxxx>

diff --git a/drivers/md/dm-kcopyd.c b/drivers/md/dm-kcopyd.c
index 4d3bbbea2e9a..65ed3e574c7e 100644
--- a/drivers/md/dm-kcopyd.c
+++ b/drivers/md/dm-kcopyd.c
@@ -513,7 +513,7 @@ static int run_complete_job(struct kcopyd_job *job)

static void complete_io(unsigned long error, void *context)
{
- struct kcopyd_job *job = (struct kcopyd_job *) context;
+ struct kcopyd_job *job = context;
struct dm_kcopyd_client *kc = job->kc;

io_job_finish(kc->throttle);
@@ -689,7 +689,7 @@ static void segment_complete(int read_err, unsigned long write_err,
/* FIXME: tidy this function */
sector_t progress = 0;
sector_t count = 0;
- struct kcopyd_job *sub_job = (struct kcopyd_job *) context;
+ struct kcopyd_job *sub_job = context;
struct kcopyd_job *job = sub_job->master_job;
struct dm_kcopyd_client *kc = job->kc;

--
2.18.2