diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2008-12-23 00:14:19 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2008-12-23 00:14:19 +0000 |
commit | 091df126197bef5f4cf1529997c2c1e68baa9155 (patch) | |
tree | ee22c4ffb3c0c9dce78746c222dd09be50f42f2d /sys/dev | |
parent | 6edc9aa9c8eae8bb44e17d70870d37445471be80 (diff) |
sizeof(bge_devices) / sizeof(bge_devices[0]) -> nitems(bge_devices)
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_bge.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 3930d7ea87f..2f8940e07ab 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.259 2008/12/23 00:12:22 dlg Exp $ */ +/* $OpenBSD: if_bge.c,v 1.260 2008/12/23 00:14:18 dlg Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -1829,8 +1829,7 @@ bge_lookup_rev(u_int32_t chipid) int bge_probe(struct device *parent, void *match, void *aux) { - return (pci_matchbyid((struct pci_attach_args *)aux, bge_devices, - sizeof(bge_devices)/sizeof(bge_devices[0]))); + return (pci_matchbyid(aux, bge_devices, nitems(bge_devices))); } void |