diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-29 14:57:38 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-31 01:29:51 +0100 |
commit | fbd0aea17ea272bae8d52b2e0a1f0a6ead7f5a2f (patch) | |
tree | e1e15ec8c7d35696dcaa9e68f20298939cb7e4ed /src/shared/dissect-image.c | |
parent | udev-event: fix timeout log messages (diff) | |
download | systemd-fbd0aea17ea272bae8d52b2e0a1f0a6ead7f5a2f.tar.xz systemd-fbd0aea17ea272bae8d52b2e0a1f0a6ead7f5a2f.zip |
dissect: do not store unused devnum
Diffstat (limited to '')
-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)) |