]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1248105
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 1 May 2018 15:18:26 +0000 (17:18 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 10 May 2018 18:24:49 +0000 (20:24 +0200)
Time of check time of use

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/network.c

index cbffe8ef6faa014451aaea12a5dc23cd1ef6c77c..04944811c3ab109e7ff93b6e560bc6c1abbde218 100644 (file)
@@ -571,7 +571,6 @@ static char *is_wlan(const char *ifname)
        size_t len;
        char *path;
        FILE *f;
-       struct stat sb;
        char *physname = NULL;
 
        len = strlen(ifname) + strlen(PHYSNAME) - 1;
@@ -580,10 +579,6 @@ static char *is_wlan(const char *ifname)
        if (ret < 0 || (size_t)ret >= len)
                goto bad;
 
-       ret = stat(path, &sb);
-       if (ret)
-               goto bad;
-
        f = fopen(path, "r");
        if (!f)
                goto bad;