mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 22:25:25 +00:00
openvz_driver.c: avoid dead store to "err"
* src/openvz_driver.c (openvzGenerateContainerVethName): Remove use and decl of "err".
This commit is contained in:
parent
e2cd26ee70
commit
a7848c4502
@ -504,11 +504,10 @@ openvzGenerateVethName(int veid, char *dev_name_ve)
|
||||
static char *
|
||||
openvzGenerateContainerVethName(int veid)
|
||||
{
|
||||
int ret;
|
||||
char temp[1024];
|
||||
|
||||
/* try to get line "^NETIF=..." from config */
|
||||
if ( (ret = openvzReadVPSConfigParam(veid, "NETIF", temp, sizeof(temp))) <= 0) {
|
||||
if (openvzReadVPSConfigParam(veid, "NETIF", temp, sizeof(temp)) <= 0) {
|
||||
snprintf(temp, sizeof(temp), "eth0");
|
||||
} else {
|
||||
char *saveptr;
|
||||
|
Loading…
Reference in New Issue
Block a user