Time of check time of use

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-05-01 17:18:26 +02:00
parent 0382c0da7b
commit 023e2a307a
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

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