wmbattery: Remove unnecessary brace.

Fixes "Invalid number of character ({) when these macros are defined"
errors given by cppcheck.
This commit is contained in:
Doug Torrance 2015-05-13 23:38:57 -05:00 committed by Carlos R. Mafra
parent 29e50127b6
commit 0fa341ec37

View file

@ -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) {