aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-06-10 22:05:30 +0200
committerKevin Wolf <kwolf@redhat.com>2011-06-14 10:01:19 +0200
commit7bf4162a801761792834e9e7da4b80b089434ce7 (patch)
tree74d3af5626c4b5af1620019739c24f4b068fafeb /block
parent0b862cedf36d927818c50584ddd611b0370673df (diff)
downloadqemu-7bf4162a801761792834e9e7da4b80b089434ce7.zip
qemu-7bf4162a801761792834e9e7da4b80b089434ce7.tar.gz
qemu-7bf4162a801761792834e9e7da4b80b089434ce7.tar.bz2
block/rbd: Remove unused local variable
Variable 'snap' is assigned a value that is never used. Remove snap and the related code. Cc: Christian Brunner <chb@muc.de> Cc: Josh Durgin <josh.durgin@dreamhost.com> Cc: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Weil <weil@mail.berlios.de> Reviewed-by: Josh Durgin <josh.durgin@dreamhost.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/rbd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/block/rbd.c b/block/rbd.c
index bdc448a..d5659cd 100644
--- a/block/rbd.c
+++ b/block/rbd.c
@@ -227,7 +227,6 @@ static int qemu_rbd_create(const char *filename, QEMUOptionParameter *options)
char name[RBD_MAX_IMAGE_NAME_SIZE];
char snap_buf[RBD_MAX_SNAP_NAME_SIZE];
char conf[RBD_MAX_CONF_SIZE];
- char *snap = NULL;
rados_t cluster;
rados_ioctx_t io_ctx;
int ret;
@@ -238,9 +237,6 @@ static int qemu_rbd_create(const char *filename, QEMUOptionParameter *options)
conf, sizeof(conf)) < 0) {
return -EINVAL;
}
- if (snap_buf[0] != '\0') {
- snap = snap_buf;
- }
/* Read out options */
while (options && options->name) {