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>
This commit is contained in:
Yehuda Sadeh 2010-09-27 10:51:53 -07:00 committed by Sage Weil
parent 28f259b7cd
commit f4cf3deef4
1 changed files with 0 additions and 4 deletions

View 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);