]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
commit44a4d551846b8c61aa430b9432c1fcdf88444708
tree8188189bed59234fdf943702ebb55c9c17106215
parent35b5ed5bbac2432acdfce1d9dec8dbf8fe7d60dd
drbd: refactor use of first_peer_device()

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>
drivers/block/drbd/drbd_nl.c
drivers/block/drbd/drbd_receiver.c
drivers/block/drbd/drbd_req.c
drivers/block/drbd/drbd_state.c
drivers/block/drbd/drbd_worker.c