Skip to content

Commit

Permalink
dm snapshot: remove redundant assignment in merge fn
Browse files Browse the repository at this point in the history
Remove redundant bvm->bi_sector self-assignment in dm snapshot's
origin_merge().

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
  • Loading branch information
Alasdair G Kergon committed Jul 27, 2012
1 parent 8c97117 commit 70c4861
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/md/dm-snap.c
Original file line number Diff line number Diff line change
Expand Up @@ -2176,7 +2176,6 @@ static int origin_merge(struct dm_target *ti, struct bvec_merge_data *bvm,
return max_size;

bvm->bi_bdev = dev->bdev;
bvm->bi_sector = bvm->bi_sector;

return min(max_size, q->merge_bvec_fn(q, bvm, biovec));
}
Expand Down

0 comments on commit 70c4861

Please sign in to comment.