Commit f4cf3dee authored by Yehuda Sadeh's avatar Yehuda Sadeh Committed by Sage Weil

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: default avatarYehuda Sadeh <yehuda@hq.newdream.net>
parent 28f259b7
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment