drbd: simplify conn_all_vols_unconf, make it bool
authorLars Ellenberg <lars.ellenberg@linbit.com>
Thu, 10 Mar 2011 22:28:13 +0000 (23:28 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Sat, 3 Nov 2012 23:16:19 +0000 (00:16 +0100)
commitd0456c72df5fb3b800ba9b0ec2465fdbcaf29a7f
treeb9b7174176a29502ab045dad3c947cf1e7a885f1
parent543cc10b4cc5c60aa9fcc62705ccfb9998bf4697
drbd: simplify conn_all_vols_unconf, make it bool

Get rid of a temporary variable and, funny bitand assignment.
Just short circuit, returning false, once we encounter the first
still configured volume.

FIXME verify call sites for need of rcu_read_lock or stronger.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_state.c
drivers/block/drbd/drbd_state.h
This page took 0.024195 seconds and 5 git commands to generate.