diff options
| author | Chen Gang <gang.chen.5i5j@gmail.com> | 2014-06-21 21:00:44 +0800 |
|---|---|---|
| committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-06-24 20:01:24 +0400 |
| commit | 5db97df274e80b03705abb418ed6f0c9b74b99ec (patch) | |
| tree | c14470c24052d7d656d0ead89fed4d047feb123b | |
| parent | 18b1afa8741964cd6a9aa73e6c1447c49b1abd86 (diff) | |
| download | focaccia-qemu-5db97df274e80b03705abb418ed6f0c9b74b99ec.tar.gz focaccia-qemu-5db97df274e80b03705abb418ed6f0c9b74b99ec.zip | |
block.c: Remove useless 'buf' variable
'buf' is not used actually, so remove it and related snprintf() statement. Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
| -rw-r--r-- | block.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block.c b/block.c index e6f9b71e11..217f523dd0 100644 --- a/block.c +++ b/block.c @@ -5581,7 +5581,6 @@ void bdrv_img_create(const char *filename, const char *fmt, if (backing_file) { BlockDriverState *bs; uint64_t size; - char buf[32]; int back_flags; /* backing files always opened read-only */ @@ -5602,7 +5601,6 @@ void bdrv_img_create(const char *filename, const char *fmt, bdrv_get_geometry(bs, &size); size *= 512; - snprintf(buf, sizeof(buf), "%" PRId64, size); qemu_opt_set_number(opts, BLOCK_OPT_SIZE, size); bdrv_unref(bs); |