]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/backlight/backlight.c
Merge pull request #17549 from yuwata/tiny-fixes
[thirdparty/systemd.git] / src / backlight / backlight.c
index 682c719f61e6727d08558d7f174577e3ce0d0799..83b168532a4b8d28052548ef7f1640c2e9d6c1eb 100644 (file)
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1+ */
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -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)