aboutsummaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_interval.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher2011-01-27 16:20:57 +0100
committerPhilipp Reisner2011-09-28 10:26:30 +0200
commit3e05146f0a9f28ef5959403eabf3239869476315 (patch)
tree925b3b0767f55f7da214bf8b09bdbac351b65c0e /drivers/block/drbd/drbd_interval.c
parenta500c2efbbb3a57f83e18382e927b18513aca4cd (diff)
drbd: Remove redundant check from drbd_contains_interval()
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_interval.c')
-rw-r--r--drivers/block/drbd/drbd_interval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_interval.c b/drivers/block/drbd/drbd_interval.c
index b77a9bda03d4..0d17eaa89a69 100644
--- a/drivers/block/drbd/drbd_interval.c
+++ b/drivers/block/drbd/drbd_interval.c
@@ -99,7 +99,7 @@ drbd_contains_interval(struct rb_root *root, sector_t sector,
else if (interval > here)
node = node->rb_right;
else
- return interval->sector == sector;
+ return true;
}
return false;
}