summaryrefslogtreecommitdiff
path: root/simplebl.c
diff options
context:
space:
mode:
Diffstat (limited to 'simplebl.c')
-rw-r--r--simplebl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/simplebl.c b/simplebl.c
index f4d81ea..2890bd2 100644
--- a/simplebl.c
+++ b/simplebl.c
@@ -167,7 +167,7 @@ write_sys_file_num(const char *const path, const long val)
int
main(int argc, char *argv[])
{
- long brightness, max_brightness;
+ long max_brightness;
long val;
if (!check_group())
@@ -185,8 +185,7 @@ main(int argc, char *argv[])
val = -val;
/* FALLTHROUGH */
case '+':
- brightness = read_sys_file_num(BRIGHTNESS);
- val += brightness;
+ val += read_sys_file_num(BRIGHTNESS);
/* FALLTHROUGH */
case '=':
max_brightness = read_sys_file_num(MAX_BRIGHTNESS);