Skip to content

Commit

Permalink
block: rbd: removing unnecessary test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yehuda Sadeh authored and Sage Weil committed Oct 20, 2010
1 parent 28f259b commit f4cf3de
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f4cf3de

Please sign in to comment.