From 2a1a026d72a2fff4f155ced6ab28977f74641355 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 12 Mar 2026 14:37:37 +0900 Subject: [PATCH] udev-builtin-input-id: drop unused value --- src/udev/udev-builtin-input_id.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/udev/udev-builtin-input_id.c b/src/udev/udev-builtin-input_id.c index 8a31760889..ec232f3e93 100644 --- a/src/udev/udev-builtin-input_id.c +++ b/src/udev/udev-builtin-input_id.c @@ -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)