brcmsmac: use ARRAY_SIZE in phytbl_lcn.c
authorArend van Spriel <arend@broadcom.com>
Tue, 20 Aug 2013 14:00:37 +0000 (16:00 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 22 Aug 2013 18:30:31 +0000 (14:30 -0400)
commitd6b81daaa2afaa17d39b34e36ca17bc6062b4bc5
tree45ee19dab430cc9354ee82df621e7d9887e0cc00
parentacf97e9b5a5246da1193cb564377a4e7793eb29e
brcmsmac: use ARRAY_SIZE in phytbl_lcn.c

This patch converts all sizeof(x)/sizeof(x[0]) instances to
ARRAY_SIZE macro in phytbl_lcn.c. The patch was made using
spatch with ARRAY_SIZE.cocci (see [1]).

[1] https://github.com/coccinelle/coccinelle/tree/master/demos/janitorings

Cc: Jonas Gorski <jogo@openwrt.org>
Tested-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/phy/phytbl_lcn.c