Skip to contentSkip to conversation

staging: replace open-coded ARRAY_SIZEs

PATCH New Jim Cromie 2 participants 3 messages Apr 10, 2012 – Apr 11, 2012 Networking drivers (wireless)

lore
Share & tools
lore
author
#1 lore raw

PATCH 1/1 brcm80211: replace open-coded ARRAY_SIZE with the macro

---
 .../net/wireless/brcm80211/brcmsmac/phy/phy_lcn.c  |    3 +-
 .../net/wireless/brcm80211/brcmsmac/phy/phy_n.c    |   41 +++++--------------
 2 files changed, 12 insertions(+), 32 deletions(-)
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_lcn.c +1 -2
index ce8562a..0fce56235 100644
@@ -207,8 +207,7 @@ static const iqcal_gain_params_lcnphy *tbl_iqcal_gainparams_lcnphy[1] = {
 };
 
 static const u16 iqcal_gainparams_numgains_lcnphy[1] = {
-	sizeof(tbl_iqcal_gainparams_lcnphy_2G) /
-	sizeof(*tbl_iqcal_gainparams_lcnphy_2G),
+	ARRAY_SIZE(tbl_iqcal_gainparams_lcnphy_2G),
 };
 
 static const struct lcnphy_sfo_cfg lcnphy_sfo_cfg[] = {
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_n.c +11 -30

101 lines not on this page · raw message

Signature · 1 line
1.7.8.1