Skip to content

Commit

Permalink
network: remove unused variable
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Jul 18, 2020
1 parent 4b37c92 commit 525f5e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lxc/network.c
Expand Up @@ -2437,7 +2437,6 @@ static const char padchar[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLM

char *lxc_ifname_alnum_case_sensitive(char *template)
{
int ret;
char name[IFNAMSIZ];
size_t i = 0;
#ifdef HAVE_RAND_R
Expand Down Expand Up @@ -2467,9 +2466,8 @@ char *lxc_ifname_alnum_case_sensitive(char *template)
}
}

if (if_nametoindex(name) == 0) {
if (if_nametoindex(name) == 0)
break;
}
}

(void)strlcpy(template, name, strlen(template) + 1);
Expand Down

0 comments on commit 525f5e4

Please sign in to comment.