From: Kulikov Vasiliy Date: Mon, 28 Jun 2010 11:55:32 +0000 (+0400) Subject: Staging: rtl8192u: use ARRAY_SIZE X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f079bc30211ba5f08d8bab512ceaa6d3e881f4ec;p=linux-beck.git Staging: rtl8192u: use ARRAY_SIZE Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). Signed-off-by: Kulikov Vasiliy Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c index fb78ed2876e5..d6f55c290dbe 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c @@ -85,7 +85,7 @@ static inline char *rtl819x_translate_scan(struct ieee80211_device *ieee, } /* Add the protocol name */ iwe.cmd = SIOCGIWNAME; - for(i=0; i<(sizeof(ieee80211_modes)/sizeof(ieee80211_modes[0])); i++) { + for(i=0; imode&(1<