[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220809092310.5603-1-chuanjian@nfschina.com>
Date: Tue, 9 Aug 2022 17:23:10 +0800
From: Dong Chuanjian <chuanjian@...china.com>
To: agk@...hat.com, snitzer@...nel.org, dm-devel@...hat.com
Cc: linux-kernel@...r.kernel.org, kernel@...china.com,
Dong Chuanjian <chuanjian@...china.com>
Subject: [PATCH] drivers/md/dm-kcopyd.c: remove unnecessary (void*) conversions
remove unnecessary void* type casting
Signed-off-by: Dong Chuanjian <chuanjian@...china.com>
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
Powered by blists - more mailing lists