Author: adrian
Date: Mon Oct 10 02:54:58 2011
New Revision: 226182
URL: http://svn.freebsd.org/changeset/base/226182

Log:
  Fix an incorrect use of sizeof().
  
  Obtained from:        OpenBSD sys/dev/ic/bwi.c r1.87

Modified:
  head/sys/dev/bwi/bwiphy.c

Modified: head/sys/dev/bwi/bwiphy.c
==============================================================================
--- head/sys/dev/bwi/bwiphy.c   Mon Oct 10 02:49:21 2011        (r226181)
+++ head/sys/dev/bwi/bwiphy.c   Mon Oct 10 02:54:58 2011        (r226182)
@@ -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]);
                }
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to