]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
lxc_driver: remove useless comparison
authorJim Meyering <meyering@redhat.com>
Mon, 18 Jan 2010 08:49:57 +0000 (09:49 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 18 Jan 2010 12:31:41 +0000 (13:31 +0100)
* src/lxc/lxc_driver.c (lxcSetupInterfaces): Remove always-true
array-is-non-NULL test.  git grep 'mac\[.*\];'|grep -F .h
src/conf/domain_conf.h:    unsigned char mac[VIR_MAC_BUFLEN];

src/lxc/lxc_driver.c

index 86606c742779565da2a74673d0eb82e934ddaa4f..94ec874590ca26d73c31610d78dee4a40d7cafba 100644 (file)
@@ -834,7 +834,7 @@ static int lxcSetupInterfaces(virConnectPtr conn,
             goto error_exit;
         }
 
-        if (def->nets[i]->mac) {
+        {
             char macaddr[VIR_MAC_STRING_BUFLEN];
             virFormatMacAddr(def->nets[i]->mac, macaddr);
             if (0 != (rc = setMacAddr(containerVeth, macaddr))) {