This patch converts all applicable instances of sizeof(array)/sizeof(member) that I found to ARRAY_SIZE. Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> --- net/mac80211/ieee80211_ioctl.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) --- wireless-dev.orig/net/mac80211/ieee80211_ioctl.c 2007-03-27 16:33:30.893155480 +0200 +++ wireless-dev/net/mac80211/ieee80211_ioctl.c 2007-03-27 16:33:44.363155480 +0200 @@ -3273,11 +3273,9 @@ static const iw_handler ieee80211_privat const struct iw_handler_def ieee80211_iw_handler_def = { - .num_standard = sizeof(ieee80211_handler) / sizeof(iw_handler), - .num_private = sizeof(ieee80211_private_handler) / - sizeof(iw_handler), - .num_private_args = sizeof(ieee80211_ioctl_priv) / - sizeof(struct iw_priv_args), + .num_standard = ARRAY_SIZE(ieee80211_handler), + .num_private = ARRAY_SIZE(ieee80211_private_handler), + .num_private_args = ARRAY_SIZE(ieee80211_ioctl_priv), .standard = (iw_handler *) ieee80211_handler, .private = (iw_handler *) ieee80211_private_handler, .private_args = (struct iw_priv_args *) ieee80211_ioctl_priv, - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html