summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-10-10 20:03:26 +0200
committerSage Weil <sage@newdream.net>2011-10-10 20:03:26 +0200
commitb6c4615866593fc6029642357c0364fe9fb44c21 (patch)
treeece5e54121b715b0ed10b213090c8ce8c5df4505
parentlibrbd: fix copy progress (diff)
downloadceph-b6c4615866593fc6029642357c0364fe9fb44c21.tar.xz
ceph-b6c4615866593fc6029642357c0364fe9fb44c21.zip
librbd: slightly cleaner
Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r--src/librbd.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/librbd.cc b/src/librbd.cc
index 2f0ecc77a2c..5e0c7321fea 100644
--- a/src/librbd.cc
+++ b/src/librbd.cc
@@ -1111,8 +1111,6 @@ int do_copy_extent(uint64_t offset, size_t len, const char *buf, void *data)
int ret = 0;
if (buf) {
ret = write(cp->destictx, offset, len, buf);
- if (ret < 0)
- return ret;
}
return ret;
}