From: Christian Brauner Date: Tue, 1 May 2018 15:18:26 +0000 (+0200) Subject: coverity: #1248105 X-Git-Tag: lxc-3.1.0~313^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=023e2a307a092e1ce67b66d040061c9356959a3e;p=thirdparty%2Flxc.git coverity: #1248105 Time of check time of use Signed-off-by: Christian Brauner --- 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;