提交 f4cf3dee 编写于 作者: Y Yehuda Sadeh 提交者: 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: NYehuda Sadeh <yehuda@hq.newdream.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册