aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/faulty.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2010-03-08 16:02:40 +1100
committerNeilBrown <neilb@suse.de>2010-05-18 15:27:46 +1000
commit7b92813c3c0b6990f14838e3985fb385d2655d0c (patch)
treec072a6684185f2c18734e704c488953250e8353a /drivers/md/faulty.c
parent696fcd535b5a8cfc0617e9cf1d9d69a13895cc1e (diff)
downloadlinaro-lsk-7b92813c3c0b6990f14838e3985fb385d2655d0c.tar.gz
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/faulty.c b/drivers/md/faulty.c
index 713acd02ab3..608a8d3736e 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)
static int make_request(struct request_queue *q, struct bio *bio)
{
mddev_t *mddev = q->queuedata;
- conf_t *conf = (conf_t*)mddev->private;
+ conf_t *conf = mddev->private;
int failit = 0;
if (bio_data_dir(bio) == WRITE) {
@@ -224,7 +224,7 @@ static int make_request(struct request_queue *q, struct bio *bio)
static void status(struct seq_file *seq, mddev_t *mddev)
{
- conf_t *conf = (conf_t*)mddev->private;
+ conf_t *conf = mddev->private;
int n;
if ((n=atomic_read(&conf->counters[WriteTransient])) != 0)
@@ -327,7 +327,7 @@ static int run(mddev_t *mddev)
static int stop(mddev_t *mddev)
{
- conf_t *conf = (conf_t *)mddev->private;
+ conf_t *conf = mddev->private;
kfree(conf);
mddev->private = NULL;