From c7f2c3aae3c6780696eb80bee522d2547b901782 Mon Sep 17 00:00:00 2001 From: kn Date: Sun, 27 Nov 2022 22:55:31 +0000 Subject: [PATCH] Remove last queue(3) *_END() usage from tree queue(3) NOTES says they're deprecated and expand to NULL; indeed. No object change. OK kettenis mvs --- sys/dev/pci/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 5f214d49d33..02cc9e29cfd 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci.c,v 1.125 2022/06/17 10:08:36 kettenis Exp $ */ +/* $OpenBSD: pci.c,v 1.126 2022/11/27 22:55:31 kn Exp $ */ /* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */ /* @@ -1293,7 +1293,7 @@ pciioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) func == sel->pc_func) break; } - if (pd == LIST_END(&pci->sc_devs)) + if (pd == NULL) return ENXIO; tag = pci_make_tag(pc, sel->pc_bus, sel->pc_dev, sel->pc_func); -- 2.20.1