diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-29 22:57:38 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-31 09:29:51 +0900 |
commit | fbd0aea17ea272bae8d52b2e0a1f0a6ead7f5a2f (patch) | |
tree | e1e15ec8c7d35696dcaa9e68f20298939cb7e4ed | |
parent | 4375dab58ddba8a8e763143db3815a99e23e4da3 (diff) | |
download | systemd-fbd0aea17ea272bae8d52b2e0a1f0a6ead7f5a2f.tar.gz systemd-fbd0aea17ea272bae8d52b2e0a1f0a6ead7f5a2f.tar.bz2 systemd-fbd0aea17ea272bae8d52b2e0a1f0a6ead7f5a2f.zip |
dissect: do not store unused devnum
-rw-r--r-- | src/shared/dissect-image.c | 4 |
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)) |