diff options
author | Jeff Cody <jcody@redhat.com> | 2015-01-22 08:03:28 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-01-23 18:17:06 +0100 |
commit | a1a11d10abfff6638479b7510ee1df4f737d89d6 (patch) | |
tree | 98d5838a3d42c439c61d1a41929fdb0697c02073 | |
parent | 564d64bdde8e0a6b732a56fa41670e73b19ee062 (diff) | |
download | qemu-a1a11d10abfff6638479b7510ee1df4f737d89d6.tar.gz qemu-a1a11d10abfff6638479b7510ee1df4f737d89d6.tar.bz2 qemu-a1a11d10abfff6638479b7510ee1df4f737d89d6.zip |
block: remove unused variable in bdrv_commit
As Stefan pointed out, the variable 'filename' in bdrv_commit is unused,
despite being maintained in previous patches.
With this patch, get rid of the variable for good.
Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r-- | block.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -2207,7 +2207,6 @@ int bdrv_commit(BlockDriverState *bs) int n, ro, open_flags; int ret = 0; uint8_t *buf = NULL; - char filename[PATH_MAX]; if (!drv) return -ENOMEDIUM; @@ -2222,8 +2221,6 @@ int bdrv_commit(BlockDriverState *bs) } ro = bs->backing_hd->read_only; - /* Use pstrcpy (not strncpy): filename must be NUL-terminated. */ - pstrcpy(filename, sizeof(filename), bs->backing_hd->filename); open_flags = bs->backing_hd->open_flags; if (ro) { |