summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2010-09-27 10:51:53 -0700
committerSage Weil <sage@newdream.net>2010-10-20 15:38:20 -0700
commitf4cf3deef4c474381e8fee2e6099d49edd9105cb (patch)
treefbf21efa48b062e3a4af9a91c564f05e2b63090c /drivers/block
parent28f259b7cd78eb29d38b7ae6b475d656e08fd348 (diff)
downloadlinux-f4cf3deef4c474381e8fee2e6099d49edd9105cb.tar.gz
linux-f4cf3deef4c474381e8fee2e6099d49edd9105cb.tar.bz2
linux-f4cf3deef4c474381e8fee2e6099d49edd9105cb.zip
block: rbd: removing unnecessary test
rbd_get_segment() can't return a negative value, we don't need to check the return output. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Diffstat (limited to 'drivers/block')
-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 83b15dd24853..1ac87f182057 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);