drbd: refactor use of first_peer_device()
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 22 Nov 2013 11:40:58 +0000 (12:40 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Jul 2014 13:22:22 +0000 (15:22 +0200)
Reduce the number of calls to first_peer_device(). Instead, call
first_peer_device() just once to assign a local variable peer_device.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>

No differences found