aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/drbd/drbd_interval.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2011-01-27 10:20:57 -0500
committerPhilipp Reisner <philipp.reisner@linbit.com>2011-09-28 04:26:30 -0400
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,
99 else if (interval > here) 99 else if (interval > here)
100 node = node->rb_right; 100 node = node->rb_right;
101 else 101 else
102 return interval->sector == sector; 102 return true;
103 } 103 }
104 return false; 104 return false;
105} 105}