Skip to content

Commit

Permalink
md/raid5: remove redundant check in stripe_add_to_batch_list()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Roman Gushchin authored and NeilBrown committed Jan 6, 2016
1 parent 1683098 commit b46020a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit b46020a

Please sign in to comment.