diff options
| author | Stefan Hajnoczi | 2014-11-21 11:48:58 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2014-12-10 10:31:13 +0100 |
| commit | 73f1f7564d58963fc692334bcf0c529e1e3536fb (patch) | |
| tree | be3b5a7356cfcc26e397a5ba716c0ffae11503f6 /include | |
| parent | blockdev: update outdated qmp_transaction() comments (diff) | |
| download | qemu-73f1f7564d58963fc692334bcf0c529e1e3536fb.tar.gz qemu-73f1f7564d58963fc692334bcf0c529e1e3536fb.tar.xz qemu-73f1f7564d58963fc692334bcf0c529e1e3536fb.zip | |
blockdev: drop unnecessary DriveBackupState field assignment
drive_backup_prepare() assigns DriveBackupState fields to NULL in the
error path. This is unnecessary because the DriveBackupState is
allocated using g_malloc0() and other functions like
external_snapshot_prepare() already rely on this.
Do not explicitly assign fields to NULL so that the error path is
concise and does not require modification when fields are added to
DriveBackupState.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1416566940-4430-3-git-send-email-stefanha@redhat.com
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
