summaryrefslogtreecommitdiffstats
path: root/drivers/block/rbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/rbd.c')
-rw-r--r--drivers/block/rbd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 83b15dd2485..1ac87f18205 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -889,10 +889,6 @@ static int rbd_do_op(struct request *rq,
rbd_dev->header.block_name,
ofs, len,
seg_name, &seg_ofs);
- if ((s64)seg_len < 0) {
- ret = seg_len;
- goto done;
- }
payload_len = (flags & CEPH_OSD_FLAG_WRITE ? seg_len : 0);