]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect: do not store unused devnum 10556/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 29 Oct 2018 13:57:38 +0000 (22:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 31 Oct 2018 00:29:51 +0000 (09:29 +0900)
src/shared/dissect-image.c

index 710507ed5cc45a833d4e0841f46c7d179cb62107..7841f4a359e71c05295a4e4e5a44e1fb70afd8d5 100644 (file)
@@ -281,9 +281,7 @@ int dissect_image(
                 /* Count the partitions enumerated by the kernel */
                 n = 0;
                 FOREACH_DEVICE(e, q) {
-                        dev_t qn;
-
-                        if (sd_device_get_devnum(q, &qn) < 0)
+                        if (sd_device_get_devnum(q, NULL) < 0)
                                 continue;
 
                         if (!device_is_block(q))