summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/slstatus.c b/slstatus.c
index f0d9544..ea8fc20 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -119,12 +119,6 @@ battery_state(const char *battery)
char state[12];
FILE *fp;
- if (!state) {
- warn("Failed to get battery state.");
- return smprintf(UNKNOWN_STR);
- }
-
-
ccat(3, "/sys/class/power_supply/", battery, "/status");
fp = fopen(concat, "r");
if (fp == NULL) {