mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 01:04:08 +08:00
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:
parent
28f259b7cd
commit
f4cf3deef4
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user