projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28f259b
)
block: rbd: removing unnecessary test
author
Yehuda Sadeh
<yehuda@hq.newdream.net>
Mon, 27 Sep 2010 17:51:53 +0000
(10:51 -0700)
committer
Sage Weil
<sage@newdream.net>
Wed, 20 Oct 2010 22:38:20 +0000
(15:38 -0700)
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>
drivers/block/rbd.c
patch
|
blob
|
history
diff --git
a/drivers/block/rbd.c
b/drivers/block/rbd.c
index
83b15dd
..
1ac87f1
100644
(file)
--- a/
drivers/block/rbd.c
+++ b/
drivers/block/rbd.c
@@
-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);