udev: drop assertion which is always false

Fixes a bug introduced by 67c3e1f63a.

Fixes #24945.
This commit is contained in:
Yu Watanabe
2022-10-10 14:20:33 +09:00
committed by Lennart Poettering
parent 7aa4762ce2
commit 6209bbbd4b

View File

@@ -556,7 +556,6 @@ 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(nvme);
r = sd_device_get_sysname(dev, &sysname);
if (r < 0)