remove redundant argument from is_in_chunk_boundary raid0.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Signed-off-by: razb <raziebe@xxxxxxxxx> --- diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c index 0bb151b..c3fd471 100644 --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c @@ -476,8 +476,8 @@ static mdk_rdev_t *map_sector(mddev_t *mddev, struct strip_zone *zone, /* * Is io distribute over 1 or more chunks ? */ -static inline int is_io_in_chunk_boundary(mddev_t *mddev, - unsigned int chunk_sects, struct bio *bio) +static inline int is_io_in_chunk_boundary(unsigned int chunk_sects, + struct bio *bio) { if (likely(is_power_of_2(chunk_sects))) { return chunk_sects >= ((bio->bi_sector & (chunk_sects-1)) @@ -511,7 +511,7 @@ static int raid0_make_request(struct request_queue *q, struct bio *bio) part_stat_unlock(); chunk_sects = mddev->chunk_sectors; - if (unlikely(!is_io_in_chunk_boundary(mddev, chunk_sects, bio))) { + if (unlikely(!is_io_in_chunk_boundary(chunk_sects, bio))) { sector_t sector = bio->bi_sector; struct bio_pair *bp; /* Sanity check -- queue functions should prevent this happening */ -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html