From b49e168e6b04bb32e80799e7549cb5aa07794d4e Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sun, 23 Nov 2008 12:51:11 +0000 Subject: sizeofa -> nitems --- sys/dev/pci/if_nxe.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev/pci/if_nxe.c') diff --git a/sys/dev/pci/if_nxe.c b/sys/dev/pci/if_nxe.c index 81d6706ec5e..42545077a8c 100644 --- a/sys/dev/pci/if_nxe.c +++ b/sys/dev/pci/if_nxe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nxe.c,v 1.57 2008/10/29 01:14:47 deraadt Exp $ */ +/* $OpenBSD: if_nxe.c,v 1.58 2008/11/23 12:51:10 dlg Exp $ */ /* * Copyright (c) 2007 David Gwynne @@ -833,7 +833,6 @@ int nxe_rom_read_region(struct nxe_softc *, u_int32_t, /* misc bits */ #define DEVNAME(_sc) ((_sc)->sc_dev.dv_xname) -#define sizeofa(_a) (sizeof(_a) / sizeof((_a)[0])) /* let's go! */ @@ -864,7 +863,7 @@ nxe_match(struct device *parent, void *match, void *aux) if (PCI_CLASS(pa->pa_class) != PCI_CLASS_NETWORK) return (0); - return (pci_matchbyid(pa, nxe_devices, sizeofa(nxe_devices))); + return (pci_matchbyid(pa, nxe_devices, nitems(nxe_devices))); } void -- cgit v1.2.3