From 13e652c8c6ca600c935d8ad16b260fe6976e8bb6 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 10 Oct 2022 14:20:33 +0900 Subject: [PATCH] udev: drop assertion which is always false Fixes a bug introduced by 67c3e1f63a5221b47a8fea85ae421671f29f3b7e. Fixes #24945. (cherry picked from commit 6209bbbd4b1c9ed2886028ab2ee3df0a7d0e2494) Gbp-Pq: Name udev-drop-assertion-which-is-always-false.patch --- src/udev/udev-builtin-path_id.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/udev/udev-builtin-path_id.c b/src/udev/udev-builtin-path_id.c index 93069c70..1084eb2d 100644 --- a/src/udev/udev-builtin-path_id.c +++ b/src/udev/udev-builtin-path_id.c @@ -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) -- 2.30.2