kernel-ark/drivers/staging/vt6655
Konrad Zapalowicz 0c4df9c969 staging: vt6655: refactor iwctl_giwaplist() to avoid -Wframe-larger-than warn.
This commit refactors the iwctl_giwaplist() function so that the sparse
warning "the frame size of 1292 bytes is larger than 1024 bytes
[-Wframe-larger-than=]" is no more.

The root cause of this warning were two arrays allocated on the stack
and this commit changes this - these arrays are now kmalloc'ed. As a
result the function is refactored and hopefully stil working the same.

I were not able to test these changes so at least the carefull review
is more than welcomed.

Note that my changes has broadened the set of error codes that this
function can return. The new error code is ENOMEM. Luckily, this is
no issue.

Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-28 14:10:46 -07:00
..
80211hdr.h
80211mgr.c
80211mgr.h
aes_ccmp.c
aes_ccmp.h
baseband.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
baseband.h
bssdb.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
bssdb.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
card.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
card.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
channel.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
channel.h
country.h
datarate.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
datarate.h
desc.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
device_cfg.h
device_main.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
device.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
dpc.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
dpc.h
hostap.c staging: vt6655: Remove useless return variables 2014-05-23 21:35:27 +09:00
hostap.h
IEEE11h.c staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
IEEE11h.h
iocmd.h
ioctl.c staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
ioctl.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
iowpa.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
iwctl.c staging: vt6655: refactor iwctl_giwaplist() to avoid -Wframe-larger-than warn. 2014-05-28 14:10:46 -07:00
iwctl.h
Kconfig
key.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
key.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
mac.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
mac.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
Makefile
mib.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
mib.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
michael.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
michael.h
power.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
power.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
rc4.c
rc4.h
rf.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
rf.h
rxtx.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
rxtx.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
srom.c
srom.h
tcrc.c
tcrc.h
test
tether.c
tether.h
tkip.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
tkip.h
tmacro.h
TODO
ttype.h
upc.h
vntconfiguration.dat
vntwifi.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
vntwifi.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
wcmd.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
wcmd.h
wctl.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
wctl.h
wmgr.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
wmgr.h staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
wpa2.c staging: vt6655: fix checkpatch bracing issues 2014-05-15 13:26:37 -07:00
wpa2.h
wpa.c staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
wpa.h
wpactl.c staging: vt6655: Remove useless return variables 2014-05-23 21:35:27 +09:00
wpactl.h
wroute.c staging: vt6655: remove dead code 2014-05-15 13:25:58 -07:00
wroute.h