]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-dump: voidify one function call
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Jan 2025 16:48:04 +0000 (01:48 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Jan 2025 16:50:13 +0000 (01:50 +0900)
Fixes CID#1590377.

src/udev/udev-dump.c

index 5900eef8afff3d8a865e8487b7c36c2d95505835..26e65979eb7e2d86ffc3ae22ab5843ee6de8ffed 100644 (file)
@@ -29,8 +29,8 @@ void dump_event(UdevEvent *event, FILE *f) {
         if (sd_device_get_devnum(dev, NULL) >= 0) {
 
                 if (sd_device_get_devlink_first(dev)) {
-                        int prio;
-                        device_get_devlink_priority(dev, &prio);
+                        int prio = 0;
+                        (void) device_get_devlink_priority(dev, &prio);
                         fprintf(f, "%sDevice node symlinks:%s (priority=%i)\n", ansi_highlight(), ansi_normal(), prio);
                         FOREACH_DEVICE_DEVLINK(dev, devlink)
                                 fprintf(f, "  %s\n", devlink);