From 0fa341ec379d98ffb0a69b2d3a3dd5ef15e63859 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Wed, 13 May 2015 23:38:57 -0500 Subject: [PATCH] wmbattery: Remove unnecessary brace. Fixes "Invalid number of character ({) when these macros are defined" errors given by cppcheck. --- wmbattery/simplehal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmbattery/simplehal.c b/wmbattery/simplehal.c index 8647e4e..cf8531d 100644 --- a/wmbattery/simplehal.c +++ b/wmbattery/simplehal.c @@ -200,7 +200,7 @@ int simplehal_read(int battery, apm_info *info) * required to be available; this is good enough */ if (info->battery_percentage < 1) info->battery_status = BATTERY_STATUS_CRITICAL; - else if (info->battery_percentage < 10) { + else if (info->battery_percentage < 10) info->battery_status = BATTERY_STATUS_LOW; } else if (info->ac_line_status && get_hal_bool(device, "battery.rechargeable.is_charging", 0) == 1) {