From: Jim Meyering Date: Tue, 16 Mar 2010 18:32:05 +0000 (+0100) Subject: fix two "make syntax check" failures X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a31bc6750347a79dbd43b0aacecf86d204e6e160;p=libvirt.git fix two "make syntax check" failures * src/xenapi/xenapi_driver.c (xenapiOpen): Remove useless-if-before-free. * po/POTFILES.in: Add src/xenapi/xenapi_utils.c. --- diff --git a/po/POTFILES.in b/po/POTFILES.in index ac169beb2d..18455728ce 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -78,5 +78,6 @@ src/xen/xen_hypervisor.c src/xen/xen_inotify.c src/xen/xm_internal.c src/xen/xs_internal.c +src/xenapi/xenapi_utils.c tools/console.c tools/virsh.c diff --git a/src/xenapi/xenapi_driver.c b/src/xenapi/xenapi_driver.c index 153582d161..ad77068c92 100644 --- a/src/xenapi/xenapi_driver.c +++ b/src/xenapi/xenapi_driver.c @@ -102,7 +102,7 @@ xenapiOpen (virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUS } if (!passwd || !conn->uri->user) { xenapiSessionErrorHandler(conn, VIR_ERR_AUTH_FAILED, "Username/Password not valid"); - if (passwd) VIR_FREE(passwd); + VIR_FREE(passwd); return VIR_DRV_OPEN_ERROR; } if (VIR_ALLOC(privP) < 0) {