Skip to content

Commit

Permalink
rbd: drop needless test in rbd_rq_fn()
Browse files Browse the repository at this point in the history
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: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
  • Loading branch information
Alex Elder committed Oct 1, 2012
1 parent 542582f commit 38f5f65
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 38f5f65

Please sign in to comment.