]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-builtin-input-id: drop unused value 41065/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 12 Mar 2026 05:37:37 +0000 (14:37 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 May 2026 17:55:56 +0000 (02:55 +0900)
src/udev/udev-builtin-input_id.c

index 8a3176088971dbeb7ad5bcd67772f7334293cecb..ec232f3e9324881b8abb46d5a02120dc5d355e48 100644 (file)
@@ -384,9 +384,7 @@ static int builtin_input_id(UdevEvent *event, int argc, char *argv[]) {
         /* walk up the parental chain until we find the real input device; the
          * argument is very likely a subdevice of this, like eventN */
         for (pdev = dev; pdev; ) {
-                const char *s;
-
-                if (sd_device_get_sysattr_value(pdev, "capabilities/ev", &s) >= 0)
+                if (sd_device_get_sysattr_value(pdev, "capabilities/ev", /* ret= */ NULL) >= 0)
                         break;
 
                 if (sd_device_get_parent_with_subsystem_devtype(pdev, "input", NULL, &pdev) >= 0)