openvz_driver.c: avoid dead store to "err"

* src/openvz_driver.c (openvzGenerateContainerVethName): Remove use
and decl of "err".
This commit is contained in:
Jim Meyering 2009-09-04 19:11:31 +02:00
parent e2cd26ee70
commit a7848c4502

View File

@ -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;