From: Yehuda Sadeh Date: Mon, 27 Sep 2010 17:51:53 +0000 (-0700) Subject: block: rbd: removing unnecessary test X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4cf3deef4c474381e8fee2e6099d49edd9105cb;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 --- 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);