mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +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 *
|
static char *
|
||||||
openvzGenerateContainerVethName(int veid)
|
openvzGenerateContainerVethName(int veid)
|
||||||
{
|
{
|
||||||
int ret;
|
|
||||||
char temp[1024];
|
char temp[1024];
|
||||||
|
|
||||||
/* try to get line "^NETIF=..." from config */
|
/* 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");
|
snprintf(temp, sizeof(temp), "eth0");
|
||||||
} else {
|
} else {
|
||||||
char *saveptr;
|
char *saveptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user