diff options
author | Alex Elder <elder@inktank.com> | 2012-08-09 13:33:25 -0400 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2012-10-01 15:30:50 -0400 |
commit | 38f5f65e9d25b0a7270c337a35c724ca3d56f4d8 (patch) | |
tree | e58063451099ae939153bea7d4618f6ba4b1786e /drivers/block | |
parent | 542582fce1700c01b12e7945aaf173074e008e3e (diff) |
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: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/rbd.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 43f6ef8d696f..3475bb2e03ab 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c | |||
@@ -1475,10 +1475,6 @@ static void rbd_rq_fn(struct request_queue *q) | |||
1475 | struct rbd_req_coll *coll; | 1475 | struct rbd_req_coll *coll; |
1476 | struct ceph_snap_context *snapc; | 1476 | struct ceph_snap_context *snapc; |
1477 | 1477 | ||
1478 | /* peek at request from block layer */ | ||
1479 | if (!rq) | ||
1480 | break; | ||
1481 | |||
1482 | dout("fetched request\n"); | 1478 | dout("fetched request\n"); |
1483 | 1479 | ||
1484 | /* filter out block requests we don't understand */ | 1480 | /* filter out block requests we don't understand */ |