mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
lxc_driver: remove useless comparison
* 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];
This commit is contained in:
parent
8803937b59
commit
0a6a6f5e61
@ -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))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user