md/raid5: remove redundant check in stripe_add_to_batch_list()
authorRoman Gushchin <klamm@yandex-team.ru>
Sun, 20 Dec 2015 23:50:59 +0000 (10:50 +1100)
committerNeilBrown <neilb@suse.com>
Wed, 6 Jan 2016 00:38:22 +0000 (11:38 +1100)
commitb46020aa3a8a0f9c7324fe0af4aec4227f947a10
tree216803f0ef5153db5b420f773f8e48d12a52fd8b
parent168309855a7d1e16db751e9c647119fe2d2dc878
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>
drivers/md/raid5.c