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 83b15dd24853ca39949e21e9264afc0ec92b632d..1ac87f182057864664d662e866efb0cac47f8bf3 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);