1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

udev: drop assertion which is always false

Fixes a bug introduced by 67c3e1f63a.

Fixes #24945.

(cherry picked from commit 6209bbbd4b)
(cherry picked from commit bf13ffec59)
This commit is contained in:
Yu Watanabe 2022-10-10 14:20:33 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent f7d1325f3c
commit 6475b8902f

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)