From: Stefan Weil Date: Fri, 10 Jun 2011 20:05:30 +0000 (+0200) Subject: block/rbd: Remove unused local variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7bf4162a801761792834e9e7da4b80b089434ce7;p=qemu.git 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 Cc: Josh Durgin Cc: Kevin Wolf Signed-off-by: Stefan Weil Reviewed-by: Josh Durgin Signed-off-by: Kevin Wolf --- diff --git a/block/rbd.c b/block/rbd.c index bdc448aa9f..d5659cdf19 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) {