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/raid1.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/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 1ab30f64848f..23a7516abbfd 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -262,7 +262,7 @@ static inline void update_head_pos(int disk, r1bio_t *r1_bio) | |||
262 | static void raid1_end_read_request(struct bio *bio, int error) | 262 | static void raid1_end_read_request(struct bio *bio, int error) |
263 | { | 263 | { |
264 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); | 264 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); |
265 | r1bio_t * r1_bio = (r1bio_t *)(bio->bi_private); | 265 | r1bio_t *r1_bio = bio->bi_private; |
266 | int mirror; | 266 | int mirror; |
267 | conf_t *conf = r1_bio->mddev->private; | 267 | conf_t *conf = r1_bio->mddev->private; |
268 | 268 | ||
@@ -307,7 +307,7 @@ static void raid1_end_read_request(struct bio *bio, int error) | |||
307 | static void raid1_end_write_request(struct bio *bio, int error) | 307 | static void raid1_end_write_request(struct bio *bio, int error) |
308 | { | 308 | { |
309 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); | 309 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); |
310 | r1bio_t * r1_bio = (r1bio_t *)(bio->bi_private); | 310 | r1bio_t *r1_bio = bio->bi_private; |
311 | int mirror, behind = test_bit(R1BIO_BehindIO, &r1_bio->state); | 311 | int mirror, behind = test_bit(R1BIO_BehindIO, &r1_bio->state); |
312 | conf_t *conf = r1_bio->mddev->private; | 312 | conf_t *conf = r1_bio->mddev->private; |
313 | struct bio *to_put = NULL; | 313 | struct bio *to_put = NULL; |
@@ -1223,7 +1223,7 @@ abort: | |||
1223 | 1223 | ||
1224 | static void end_sync_read(struct bio *bio, int error) | 1224 | static void end_sync_read(struct bio *bio, int error) |
1225 | { | 1225 | { |
1226 | r1bio_t * r1_bio = (r1bio_t *)(bio->bi_private); | 1226 | r1bio_t *r1_bio = bio->bi_private; |
1227 | int i; | 1227 | int i; |
1228 | 1228 | ||
1229 | for (i=r1_bio->mddev->raid_disks; i--; ) | 1229 | for (i=r1_bio->mddev->raid_disks; i--; ) |
@@ -1246,7 +1246,7 @@ static void end_sync_read(struct bio *bio, int error) | |||
1246 | static void end_sync_write(struct bio *bio, int error) | 1246 | static void end_sync_write(struct bio *bio, int error) |
1247 | { | 1247 | { |
1248 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); | 1248 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); |
1249 | r1bio_t * r1_bio = (r1bio_t *)(bio->bi_private); | 1249 | r1bio_t *r1_bio = bio->bi_private; |
1250 | mddev_t *mddev = r1_bio->mddev; | 1250 | mddev_t *mddev = r1_bio->mddev; |
1251 | conf_t *conf = mddev->private; | 1251 | conf_t *conf = mddev->private; |
1252 | int i; | 1252 | int i; |