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/raid10.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/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index b4ba41ecbd20..b90fef607f63 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -254,7 +254,7 @@ static inline void update_head_pos(int slot, r10bio_t *r10_bio) | |||
254 | static void raid10_end_read_request(struct bio *bio, int error) | 254 | static void raid10_end_read_request(struct bio *bio, int error) |
255 | { | 255 | { |
256 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); | 256 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); |
257 | r10bio_t * r10_bio = (r10bio_t *)(bio->bi_private); | 257 | r10bio_t *r10_bio = bio->bi_private; |
258 | int slot, dev; | 258 | int slot, dev; |
259 | conf_t *conf = r10_bio->mddev->private; | 259 | conf_t *conf = r10_bio->mddev->private; |
260 | 260 | ||
@@ -295,7 +295,7 @@ static void raid10_end_read_request(struct bio *bio, int error) | |||
295 | static void raid10_end_write_request(struct bio *bio, int error) | 295 | static void raid10_end_write_request(struct bio *bio, int error) |
296 | { | 296 | { |
297 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); | 297 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); |
298 | r10bio_t * r10_bio = (r10bio_t *)(bio->bi_private); | 298 | r10bio_t *r10_bio = bio->bi_private; |
299 | int slot, dev; | 299 | int slot, dev; |
300 | conf_t *conf = r10_bio->mddev->private; | 300 | conf_t *conf = r10_bio->mddev->private; |
301 | 301 | ||
@@ -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 | r10bio_t * r10_bio = (r10bio_t *)(bio->bi_private); | 1226 | r10bio_t *r10_bio = bio->bi_private; |
1227 | conf_t *conf = r10_bio->mddev->private; | 1227 | conf_t *conf = r10_bio->mddev->private; |
1228 | int i,d; | 1228 | int i,d; |
1229 | 1229 | ||
@@ -1260,7 +1260,7 @@ static void end_sync_read(struct bio *bio, int error) | |||
1260 | static void end_sync_write(struct bio *bio, int error) | 1260 | static void end_sync_write(struct bio *bio, int error) |
1261 | { | 1261 | { |
1262 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); | 1262 | int uptodate = test_bit(BIO_UPTODATE, &bio->bi_flags); |
1263 | r10bio_t * r10_bio = (r10bio_t *)(bio->bi_private); | 1263 | r10bio_t *r10_bio = bio->bi_private; |
1264 | mddev_t *mddev = r10_bio->mddev; | 1264 | mddev_t *mddev = r10_bio->mddev; |
1265 | conf_t *conf = mddev->private; | 1265 | conf_t *conf = mddev->private; |
1266 | int i,d; | 1266 | int i,d; |