summaryrefslogtreecommitdiffstats
path: root/src/backlight
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-22 17:30:47 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-22 17:58:11 +0200
commitafa8ffae99284ea0c8f146c6e0450e5321bce059 (patch)
tree640142089b1bd66de5263937d4522e92f8b459f5 /src/backlight
parentactivate: reduce scope of iterator variable (diff)
downloadsystemd-afa8ffae99284ea0c8f146c6e0450e5321bce059.tar.xz
systemd-afa8ffae99284ea0c8f146c6e0450e5321bce059.zip
various: remove assignments of unread variables
Diffstat (limited to 'src/backlight')
-rw-r--r--src/backlight/backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
index 682c719f61..9ee2c23683 100644
--- a/src/backlight/backlight.c
+++ b/src/backlight/backlight.c
@@ -79,7 +79,7 @@ static int find_pci_or_platform_parent(sd_device *device, sd_device **ret) {
} else if (streq(subsystem, "pci") &&
sd_device_get_sysattr_value(parent, "class", &value) >= 0) {
- unsigned long class = 0;
+ unsigned long class;
r = safe_atolu(value, &class);
if (r < 0)