projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/block/rbd.c
b/drivers/block/rbd.c
index 83b15dd24853ca39949e21e9264afc0ec92b632d..1ac87f182057864664d662e866efb0cac47f8bf3 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);