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>
This commit is contained in:
committed by
NeilBrown
parent
696fcd535b
commit
7b92813c3c
@@ -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;
|
||||
|
Reference in New Issue
Block a user