diff options
author | 2009-06-02 12:39:02 +0000 | |
---|---|---|
committer | 2009-06-02 12:39:02 +0000 | |
commit | 4d0d30b510ff3c1e3d2bc5c394ea51febf7dc9cc (patch) | |
tree | a827cf41a1fa4c5f094fddd17954b68c789ddc6d /sys/dev/ic/ar5xxx.h | |
parent | Drop an argument to DRM_ERROR() that was both unmatched and superfluous (diff) | |
download | wireguard-openbsd-4d0d30b510ff3c1e3d2bc5c394ea51febf7dc9cc.tar.xz wireguard-openbsd-4d0d30b510ff3c1e3d2bc5c394ea51febf7dc9cc.zip |
replace custom macro AR5K_ELEMENTS() with nitems()
Diffstat (limited to 'sys/dev/ic/ar5xxx.h')
-rw-r--r-- | sys/dev/ic/ar5xxx.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5xxx.h b/sys/dev/ic/ar5xxx.h index 348d64a7f05..96d37069d09 100644 --- a/sys/dev/ic/ar5xxx.h +++ b/sys/dev/ic/ar5xxx.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ar5xxx.h,v 1.45 2008/08/29 10:05:00 reyk Exp $ */ +/* $OpenBSD: ar5xxx.h,v 1.46 2009/06/02 12:39:02 reyk Exp $ */ /* * Copyright (c) 2004, 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> @@ -1295,7 +1295,6 @@ struct ar5k_srev_name { #define AR5K_TRACE #endif #define AR5K_DELAY(_n) delay(_n) -#define AR5K_ELEMENTS(_array) (sizeof(_array) / sizeof(_array[0])) typedef struct ath_hal * (ar5k_attach_t) (u_int16_t, void *, bus_space_tag_t, bus_space_handle_t, HAL_STATUS *); |