[libvirt] [PATCH] qemu: clear useless code

Michal Privoznik mprivozn at redhat.com
Wed May 13 14:50:41 UTC 2015


On 13.05.2015 07:56, zhang bo wrote:
> The variable 'now' is useless in qemuMigrationPrepareAny(), so I clear it.
> 
> Signed-off-by: Wang Yufei <james.wangyufei at huawei.com>
> Signed-off-by: Zhang Bo <oscar.zhangbo at huawei.com>
> ---
>  src/qemu/qemu_migration.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
> index c1af704..4dcba7a 100644
> --- a/src/qemu/qemu_migration.c
> +++ b/src/qemu/qemu_migration.c
> @@ -2913,7 +2913,6 @@ qemuMigrationPrepareAny(virQEMUDriverPtr driver,
>      int ret = -1;
>      int dataFD[2] = { -1, -1 };
>      qemuDomainObjPrivatePtr priv = NULL;
> -    unsigned long long now;
>      qemuMigrationCookiePtr mig = NULL;
>      bool tunnel = !!st;
>      char *xmlout = NULL;
> @@ -2923,9 +2922,6 @@ qemuMigrationPrepareAny(virQEMUDriverPtr driver,
>      bool abort_on_error = !!(flags & VIR_MIGRATE_ABORT_ON_ERROR);
>      bool taint_hook = false;
>  
> -    if (virTimeMillisNow(&now) < 0)
> -        return -1;
> -
>      virNWFilterReadLockFilterUpdates();
>  
>      if (flags & VIR_MIGRATE_OFFLINE) {
> 

I've reworded the commit message a bit, ACKed and pushed.

Michal




More information about the libvir-list mailing list