]> Git Repo - qemu.git/commit
blockdev: drop unnecessary DriveBackupState field assignment
authorStefan Hajnoczi <[email protected]>
Fri, 21 Nov 2014 10:48:58 +0000 (10:48 +0000)
committerKevin Wolf <[email protected]>
Wed, 10 Dec 2014 09:31:13 +0000 (10:31 +0100)
commit73f1f7564d58963fc692334bcf0c529e1e3536fb
treebe3b5a7356cfcc26e397a5ba716c0ffae11503f6
parentb756b9ce8a81cd0d95ae691cee541a149463c8c9
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 <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Message-id: 1416566940[email protected]
Signed-off-by: Kevin Wolf <[email protected]>
blockdev.c
This page took 0.024772 seconds and 4 git commands to generate.