summaryrefslogtreecommitdiffstats
path: root/src/cls/rbd/cls_rbd.cc
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-02-28 15:56:22 +0100
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-02-28 15:56:22 +0100
commit9f98b80f2ec596dd99c3e1addd01403ff5f5514e (patch)
tree08a2df61dda99a547bcbf19b23dc6d9801be09db /src/cls/rbd/cls_rbd.cc
parentCInode.h: use static_cast instead of C-Style cast (diff)
downloadceph-9f98b80f2ec596dd99c3e1addd01403ff5f5514e.tar.xz
ceph-9f98b80f2ec596dd99c3e1addd01403ff5f5514e.zip
cls_rbd.cc: remove unused variable
Remove unused variable 'len', left over from commit 0b0009cfe8429072ba2af6f6843537d5501b27c3. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Diffstat (limited to '')
-rw-r--r--src/cls/rbd/cls_rbd.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cls/rbd/cls_rbd.cc b/src/cls/rbd/cls_rbd.cc
index 3088f38178b..982c8a66798 100644
--- a/src/cls/rbd/cls_rbd.cc
+++ b/src/cls/rbd/cls_rbd.cc
@@ -1836,7 +1836,6 @@ int old_snapshot_add(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
header = (struct rbd_obj_header_ondisk *)bl.c_str();
int snaps_id_ofs = sizeof(*header);
- int len = snaps_id_ofs;
int names_ofs = snaps_id_ofs + sizeof(*new_snaps) * header->snap_count;
const char *snap_name;
const char *snap_names = ((char *)header) + names_ofs;
@@ -1885,8 +1884,6 @@ int old_snapshot_add(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
new_snaps[0].id = snap_id;
new_snaps[0].image_size = header->image_size;
- len += sizeof(*new_snaps) * header->snap_count + header->snap_names_len;
-
memcpy(header_bp.c_str(), header, sizeof(*header));
newbl.push_back(header_bp);