diff options
author | Sage Weil <sage@newdream.net> | 2011-10-10 20:03:26 +0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-10-10 20:03:26 +0200 |
commit | b6c4615866593fc6029642357c0364fe9fb44c21 (patch) | |
tree | ece5e54121b715b0ed10b213090c8ce8c5df4505 | |
parent | librbd: fix copy progress (diff) | |
download | ceph-b6c4615866593fc6029642357c0364fe9fb44c21.tar.xz ceph-b6c4615866593fc6029642357c0364fe9fb44c21.zip |
librbd: slightly cleaner
Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r-- | src/librbd.cc | 2 |
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; } |