summaryrefslogtreecommitdiff
path: root/drivers/md/raid5.c
diff options
context:
space:
mode:
authorRoman Gushchin <klamm@yandex-team.ru>2015-12-20 23:50:59 (GMT)
committerNeilBrown <neilb@suse.com>2016-01-06 00:38:22 (GMT)
commitb46020aa3a8a0f9c7324fe0af4aec4227f947a10 (patch)
tree216803f0ef5153db5b420f773f8e48d12a52fd8b /drivers/md/raid5.c
parent168309855a7d1e16db751e9c647119fe2d2dc878 (diff)
downloadlinux-b46020aa3a8a0f9c7324fe0af4aec4227f947a10.tar.xz
md/raid5: remove redundant check in stripe_add_to_batch_list()
The stripe_add_to_batch_list() function is called only if stripe_can_batch() returned true, so there is no need for double check. Signed-off-by: Roman Gushchin <klamm@yandex-team.ru> Cc: Neil Brown <neilb@suse.com> Cc: linux-raid@vger.kernel.org Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'drivers/md/raid5.c')
-rw-r--r--drivers/md/raid5.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 704ef7f..2236250 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -772,8 +772,6 @@ static void stripe_add_to_batch_list(struct r5conf *conf, struct stripe_head *sh
int hash;
int dd_idx;
- if (!stripe_can_batch(sh))
- return;
/* Don't cross chunks, so stripe pd_idx/qd_idx is the same */
tmp_sec = sh->sector;
if (!sector_div(tmp_sec, conf->chunk_sectors))