]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
drbd: Remove redundant check from drbd_contains_interval()
authorAndreas Gruenbacher <agruen@linbit.com>
Thu, 27 Jan 2011 15:20:57 +0000 (16:20 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 28 Sep 2011 08:26:30 +0000 (10:26 +0200)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_interval.c

index b77a9bda03d4daca7b135519684b4914400b749c..0d17eaa89a6969865558c9eb7ee624dbc9ef9a76 100644 (file)
@@ -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;
 }