summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-29 22:57:38 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-10-31 09:29:51 +0900
commitfbd0aea17ea272bae8d52b2e0a1f0a6ead7f5a2f (patch)
treee1e15ec8c7d35696dcaa9e68f20298939cb7e4ed
parent4375dab58ddba8a8e763143db3815a99e23e4da3 (diff)
downloadsystemd-fbd0aea17ea272bae8d52b2e0a1f0a6ead7f5a2f.tar.gz
systemd-fbd0aea17ea272bae8d52b2e0a1f0a6ead7f5a2f.tar.bz2
systemd-fbd0aea17ea272bae8d52b2e0a1f0a6ead7f5a2f.zip
dissect: do not store unused devnum
-rw-r--r--src/shared/dissect-image.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c
index 710507ed5c..7841f4a359 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))