Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38f5f65e authored by Alex Elder's avatar Alex Elder
Browse files

rbd: drop needless test in rbd_rq_fn()



There's a test for null rq pointer inside the while loop in
rbd_rq_fn() that's not needed.  That same test already occurred
in the immediatly preceding loop condition test.

Signed-off-by: default avatarAlex Elder <elder@inktank.com>
Reviewed-by: default avatarYehuda Sadeh <yehuda@inktank.com>
parent 542582fc
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1475,10 +1475,6 @@ static void rbd_rq_fn(struct request_queue *q)
		struct rbd_req_coll *coll;
		struct ceph_snap_context *snapc;

		/* peek at request from block layer */
		if (!rq)
			break;

		dout("fetched request\n");

		/* filter out block requests we don't understand */