mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Cc: Neil Brown <[email protected]> Cc: [email protected] Signed-off-by: NeilBrown <[email protected]>
This commit is contained in:
parent
168309855a
commit
b46020aa3a
1 changed files with 0 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue