From: Alasdair G Kergon <agk@redhat.com>
Date: Fri, 27 Jul 2012 14:07:59 +0000 (+0100)
Subject: dm snapshot: remove redundant assignment in merge fn
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=70c48611024791ccf83aca6195b58a5db9325485;p=openwrt%2Fstaging%2Fblogic.git

dm snapshot: remove redundant assignment in merge fn

Remove redundant bvm->bi_sector self-assignment in dm snapshot's
origin_merge().

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
---

diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c
index 6f758870fc19..a228c20e40b3 100644
--- a/drivers/md/dm-snap.c
+++ b/drivers/md/dm-snap.c
@@ -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));
 }