mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-27 03:47:43 +00:00
Staging: rtl8192e: use ARRAY_SIZE
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
f53a7e3abc
commit
7e1d794fe5
@ -91,7 +91,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; i<ARRAY_SIZE(ieee80211_modes); i++) {
|
||||
if(network->mode&(1<<i)) {
|
||||
sprintf(pname,ieee80211_modes[i].mode_string,ieee80211_modes[i].mode_size);
|
||||
pname +=ieee80211_modes[i].mode_size;
|
||||
|
Loading…
Reference in New Issue
Block a user