drbd: simplify condition in drbd_may_do_local_read()
authorLars Ellenberg <lars.ellenberg@linbit.com>
Fri, 18 Feb 2011 13:13:07 +0000 (14:13 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 14 Oct 2011 14:47:39 +0000 (16:47 +0200)
commit8c387def58351f571cfcad93a3b57dff415b40c0
treefb55b7722b039d5bdddb2543ab639fbc93b17151
parentc670a398676499913ce72c26a66d204bcbdbc2e9
drbd: simplify condition in drbd_may_do_local_read()

fold
if (x >= (N+1))
return 0;
if (x < N)
return 0;
into
if (x != N)
return 0;

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