diff options
author | Andreas Gruenbacher | 2011-01-27 16:20:57 +0100 |
---|---|---|
committer | Philipp Reisner | 2011-09-28 10:26:30 +0200 |
commit | 3e05146f0a9f28ef5959403eabf3239869476315 (patch) | |
tree | 925b3b0767f55f7da214bf8b09bdbac351b65c0e /drivers/block/drbd/drbd_interval.c | |
parent | a500c2efbbb3a57f83e18382e927b18513aca4cd (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.c | 2 |
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; } |