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/raid5.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/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index a361398875d0..10af3715b1fc 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -1618,7 +1618,7 @@ static void raid5_build_block(struct stripe_head *sh, int i, int previous) | |||
1618 | static void error(mddev_t *mddev, mdk_rdev_t *rdev) | 1618 | static void error(mddev_t *mddev, mdk_rdev_t *rdev) |
1619 | { | 1619 | { |
1620 | char b[BDEVNAME_SIZE]; | 1620 | char b[BDEVNAME_SIZE]; |
1621 | raid5_conf_t *conf = (raid5_conf_t *) mddev->private; | 1621 | raid5_conf_t *conf = mddev->private; |
1622 | pr_debug("raid5: error called\n"); | 1622 | pr_debug("raid5: error called\n"); |
1623 | 1623 | ||
1624 | if (!test_bit(Faulty, &rdev->flags)) { | 1624 | if (!test_bit(Faulty, &rdev->flags)) { |
@@ -4057,7 +4057,7 @@ static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped | |||
4057 | * As the reads complete, handle_stripe will copy the data | 4057 | * As the reads complete, handle_stripe will copy the data |
4058 | * into the destination stripe and release that stripe. | 4058 | * into the destination stripe and release that stripe. |
4059 | */ | 4059 | */ |
4060 | raid5_conf_t *conf = (raid5_conf_t *) mddev->private; | 4060 | raid5_conf_t *conf = mddev->private; |
4061 | struct stripe_head *sh; | 4061 | struct stripe_head *sh; |
4062 | sector_t first_sector, last_sector; | 4062 | sector_t first_sector, last_sector; |
4063 | int raid_disks = conf->previous_raid_disks; | 4063 | int raid_disks = conf->previous_raid_disks; |
@@ -4266,7 +4266,7 @@ static sector_t reshape_request(mddev_t *mddev, sector_t sector_nr, int *skipped | |||
4266 | /* FIXME go_faster isn't used */ | 4266 | /* FIXME go_faster isn't used */ |
4267 | static inline sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster) | 4267 | static inline sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, int go_faster) |
4268 | { | 4268 | { |
4269 | raid5_conf_t *conf = (raid5_conf_t *) mddev->private; | 4269 | raid5_conf_t *conf = mddev->private; |
4270 | struct stripe_head *sh; | 4270 | struct stripe_head *sh; |
4271 | sector_t max_sector = mddev->dev_sectors; | 4271 | sector_t max_sector = mddev->dev_sectors; |
4272 | int sync_blocks; | 4272 | int sync_blocks; |
@@ -5132,7 +5132,7 @@ abort: | |||
5132 | 5132 | ||
5133 | static int stop(mddev_t *mddev) | 5133 | static int stop(mddev_t *mddev) |
5134 | { | 5134 | { |
5135 | raid5_conf_t *conf = (raid5_conf_t *) mddev->private; | 5135 | raid5_conf_t *conf = mddev->private; |
5136 | 5136 | ||
5137 | md_unregister_thread(mddev->thread); | 5137 | md_unregister_thread(mddev->thread); |
5138 | mddev->thread = NULL; | 5138 | mddev->thread = NULL; |
@@ -5181,7 +5181,7 @@ static void printall(struct seq_file *seq, raid5_conf_t *conf) | |||
5181 | 5181 | ||
5182 | static void status(struct seq_file *seq, mddev_t *mddev) | 5182 | static void status(struct seq_file *seq, mddev_t *mddev) |
5183 | { | 5183 | { |
5184 | raid5_conf_t *conf = (raid5_conf_t *) mddev->private; | 5184 | raid5_conf_t *conf = mddev->private; |
5185 | int i; | 5185 | int i; |
5186 | 5186 | ||
5187 | seq_printf(seq, " level %d, %dk chunk, algorithm %d", mddev->level, | 5187 | seq_printf(seq, " level %d, %dk chunk, algorithm %d", mddev->level, |