]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: drop assertion which is always false
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 10 Oct 2022 05:20:33 +0000 (14:20 +0900)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Oct 2022 08:26:38 +0000 (10:26 +0200)
Fixes a bug introduced by 67c3e1f63a5221b47a8fea85ae421671f29f3b7e.

Fixes #24945.

src/udev/udev-builtin-path_id.c

index 7ec2e94583e18b18c4635a2b67c69a64afc4a792..e4da1899c9f65bda8b9676c7ab8522dbc5ccc858 100644 (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)