From 023e2a307a092e1ce67b66d040061c9356959a3e Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 1 May 2018 17:18:26 +0200 Subject: [PATCH] coverity: #1248105 Time of check time of use Signed-off-by: Christian Brauner --- src/lxc/network.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/lxc/network.c b/src/lxc/network.c index cbffe8ef6..04944811c 100644 --- a/src/lxc/network.c +++ b/src/lxc/network.c @@ -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;