drbd: Remove redundant check
authorAndreas Gruenbacher <agruen@linbit.com>
Fri, 28 Jan 2011 12:28:51 +0000 (13:28 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Fri, 14 Oct 2011 14:47:52 +0000 (16:47 +0200)
commit1b3bb47d526c63a845e3374d6272a67fbe20a468
treed3ef65948bb37cd4611b642ca9f5e5fb887cbb9f
parent7be8da0798f08fb9564d4f64fe4a7d6fb4fab20b
drbd: Remove redundant check

Opening a device only succeeds on a primary node, or when explicitly
setting the allow_oos module parameter to allow opening the device
read-only on a secondary node.  There is no other way that a request can
get into drbd_make_request(), so this code cannot trigger.

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