]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: Remove pointless check
authorPhilipp Reisner <philipp.reisner@linbit.com>
Wed, 29 Oct 2014 16:19:44 +0000 (17:19 +0100)
committerJens Axboe <axboe@fb.com>
Wed, 25 Nov 2015 16:21:59 +0000 (09:21 -0700)
commit9834404a11e5dae3d78d53171c495fffc7560d21
tree8f4959f4f7754ee2c4b677e3f7617b66c7923403
parent274d74692126b78e2f2fe41aaa0ec989b8d25421
drbd: Remove pointless check

In drbd-8.4 there is always a single connection per resource,
and there is always exactly one peer_device for a device.
peer_device can not be NULL here.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/drbd/drbd_nl.c