staging: replace open-coded ARRAY_SIZEs
cover staging: replace open-coded ARRAY_SIZEs
Follow-on patch replaces open-coded ARRAY_SIZEs with the macro.
Done by spatch with http://coccinelle.lip6.fr/rules/array.cocci
PATCH 1/1 brcm80211: replace open-coded ARRAY_SIZE with the macro
Signed-off-by Jim Cromie <[email protected]>
--- .../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
@@ -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
Re: [PATCH] brcm80211: replace open-coded ARRAY_SIZE with the macro
Quoted 3 lines · Jim Cromie
Signed-off-by Jim Cromie<[email protected]>---
Acked-by Arend van Spriel <[email protected]>
and thanks.
Gr. AvS