linux/drivers/net/wireless/broadcom/brcm80211
Jérémy Lefaure 53ac793593 wireless: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Also,
it is not always useful to use a variable to store this constant
calculated at compile time.

Found with Coccinelle with the following semantic patch:
@r depends on (org || report)@
type T;
T[] E;
position p;
@@
(
 (sizeof(E)@p /sizeof(*E))
|
 (sizeof(E)@p /sizeof(E[...]))
|
 (sizeof(E)@p /sizeof(T))
)

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2017-12-08 15:19:46 +02:00
..
brcmfmac brcmfmac: Rename bcmerror to err 2017-12-07 15:10:57 +02:00
brcmsmac wireless: use ARRAY_SIZE 2017-12-08 15:19:46 +02:00
brcmutil brcmutil: add field storing control channel to the struct brcmu_chan 2016-06-14 17:27:42 +03:00
include brcmfmac: Add support for CYW4373 SDIO/USB chipset 2017-08-08 14:51:12 +03:00
Kconfig brcmfmac: update BRCMFMAC symbol description 2017-04-05 15:34:33 +03:00
Makefile