summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-10-10 02:54:58 +0000
committeradrian <adrian@FreeBSD.org>2011-10-10 02:54:58 +0000
commit359f981f4a1c1204772b1f62f06e4b066da2ea08 (patch)
tree6c996222008dd88a871503f3250b5f41179103ba /sys/dev
parentd0f5d5d0114bce92be9b9da2fdb302cd77ee7eea (diff)
downloadFreeBSD-src-359f981f4a1c1204772b1f62f06e4b066da2ea08.zip
FreeBSD-src-359f981f4a1c1204772b1f62f06e4b066da2ea08.tar.gz
Fix an incorrect use of sizeof().
Obtained from: OpenBSD sys/dev/ic/bwi.c r1.87
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/bwi/bwiphy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bwi/bwiphy.c b/sys/dev/bwi/bwiphy.c
index c41c0f8..d817d26 100644
--- a/sys/dev/bwi/bwiphy.c
+++ b/sys/dev/bwi/bwiphy.c
@@ -796,7 +796,7 @@ bwi_phy_config_11g(struct bwi_mac *mac)
bwi_tbl_write_2(mac, BWI_PHYTBL_RSSI + i, i);
/* Fill noise table */
- for (i = 0; i < sizeof(bwi_phy_noise_11g); ++i) {
+ for (i = 0; i < N(bwi_phy_noise_11g); ++i) {
bwi_tbl_write_2(mac, BWI_PHYTBL_NOISE + i,
bwi_phy_noise_11g[i]);
}
OpenPOWER on IntegriCloud