From 5ef3c261680da0a80b5a33953d106504aead70e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 24 Mar 2021 19:36:34 +0100 Subject: [PATCH] Drop always true condition The variable 'dir' is checked in line 645: if (!dir) return AC_ERROR; --- linux/Platform.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linux/Platform.c b/linux/Platform.c index 5013b660..7d412bc7 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -681,8 +681,7 @@ static ACPresence procAcpiCheck(void) { break; } - if (dir) - closedir(dir); + closedir(dir); return isOn; }