diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2010-03-08 00:02:40 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-05-18 01:27:46 -0400 |
commit | 7b92813c3c0b6990f14838e3985fb385d2655d0c (patch) | |
tree | c072a6684185f2c18734e704c488953250e8353a /drivers/md/faulty.c | |
parent | 696fcd535b5a8cfc0617e9cf1d9d69a13895cc1e (diff) |
drivers/md: Remove unnecessary casts of void *
void pointers do not need to be cast to other pointer types.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/faulty.c')
-rw-r--r-- | drivers/md/faulty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/faulty.c b/drivers/md/faulty.c index 713acd02ab39..608a8d3736e2 100644 --- a/drivers/md/faulty.c +++ b/drivers/md/faulty.c | |||
@@ -171,7 +171,7 @@ static void add_sector(conf_t *conf, sector_t start, int mode) | |||
171 | static int make_request(struct request_queue *q, struct bio *bio) | 171 | static int make_request(struct request_queue *q, struct bio *bio) |
172 | { | 172 | { |
173 | mddev_t *mddev = q->queuedata; | 173 | mddev_t *mddev = q->queuedata; |
174 | conf_t *conf = (conf_t*)mddev->private; | 174 | conf_t *conf = mddev->private; |
175 | int failit = 0; | 175 | int failit = 0; |
176 | 176 | ||
177 | if (bio_data_dir(bio) == WRITE) { | 177 | if (bio_data_dir(bio) == WRITE) { |
@@ -224,7 +224,7 @@ static int make_request(struct request_queue *q, struct bio *bio) | |||
224 | 224 | ||
225 | static void status(struct seq_file *seq, mddev_t *mddev) | 225 | static void status(struct seq_file *seq, mddev_t *mddev) |
226 | { | 226 | { |
227 | conf_t *conf = (conf_t*)mddev->private; | 227 | conf_t *conf = mddev->private; |
228 | int n; | 228 | int n; |
229 | 229 | ||
230 | if ((n=atomic_read(&conf->counters[WriteTransient])) != 0) | 230 | if ((n=atomic_read(&conf->counters[WriteTransient])) != 0) |
@@ -327,7 +327,7 @@ static int run(mddev_t *mddev) | |||
327 | 327 | ||
328 | static int stop(mddev_t *mddev) | 328 | static int stop(mddev_t *mddev) |
329 | { | 329 | { |
330 | conf_t *conf = (conf_t *)mddev->private; | 330 | conf_t *conf = mddev->private; |
331 | 331 | ||
332 | kfree(conf); | 332 | kfree(conf); |
333 | mddev->private = NULL; | 333 | mddev->private = NULL; |