From: Yu Watanabe Date: Mon, 29 Oct 2018 13:57:38 +0000 (+0900) Subject: dissect: do not store unused devnum X-Git-Tag: v240~433^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10556%2Fhead;p=thirdparty%2Fsystemd.git dissect: do not store unused devnum --- diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index 710507ed5cc..7841f4a359e 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -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))