block: rbd: removing unnecessary test
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 27 Sep 2010 17:51:53 +0000 (10:51 -0700)
committerSage Weil <sage@newdream.net>
Wed, 20 Oct 2010 22:38:20 +0000 (15:38 -0700)
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>
drivers/block/rbd.c

index 83b15dd..1ac87f1 100644 (file)
@@ -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);