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:
@@ -889,10 +889,6 @@ static int rbd_do_op(struct request *rq,
|
|||||||
rbd_dev->header.block_name,
|
rbd_dev->header.block_name,
|
||||||
ofs, len,
|
ofs, len,
|
||||||
seg_name, &seg_ofs);
|
seg_name, &seg_ofs);
|
||||||
if ((s64)seg_len < 0) {
|
|
||||||
ret = seg_len;
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
payload_len = (flags & CEPH_OSD_FLAG_WRITE ? seg_len : 0);
|
payload_len = (flags & CEPH_OSD_FLAG_WRITE ? seg_len : 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user