summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2022-11-27 22:55:32 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2022-11-27 22:55:32 +0000
commit980a5da58f43d14d1d42d1ec427ce9a055ff7588 (patch)
tree59caef1a8c88f53e41f4e2a7661aada6cf0b2b0e
parent042f3649517c6bc2f8f3f5451bcfb12ef46204c0 (diff)
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
-rw-r--r--sys/dev/pci/pci.c4
1 files 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);