just return here, eh?
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 7 Nov 2011 22:41:02 +0000 (22:41 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 7 Nov 2011 22:41:02 +0000 (22:41 +0000)
SVN revision: 64889

src/modules/battery/batget.c

index 8ccbf93..7b5d1e5 100644 (file)
@@ -1220,11 +1220,7 @@ linux_apm_check(void)
    fclose(f);
 
    bat_val = strtol(s1, &endptr, 10);
-   if (*endptr != '%')
-     {
-        bat_val = -1;
-        return;
-     }
+   if (*endptr != '%') return;
 
    if (!strcmp(s3, "sec")) time_val = atoi(s2);
    else if (!strcmp(s3, "min"))