udev: add one more assertion

Follow-up for 6209bbbd4b.
This commit is contained in:
Yu Watanabe
2022-10-11 00:17:20 +02:00
committed by Luca Boccassi
parent a5b4550213
commit f4a4493eb5
+1
View File
@@ -556,6 +556,7 @@ static int find_real_nvme_parent(sd_device *dev, sd_device **ret) {
* /sys/devices/pci0000:00/0000:00:1c.4/0000:3c:00.0/nvme/nvme0 */
assert(dev);
assert(ret);
r = sd_device_get_sysname(dev, &sysname);
if (r < 0)