staging: rtl8723bs: reduce stack usage of rtw_cfg80211_unlink_bss
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 18 Oct 2019 10:48:37 +0000 (11:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Oct 2019 02:40:54 +0000 (22:40 -0400)
commit9f665d82039187072263e22294ab6e290312f6bf
treec42005c6ffd9ac7a110251fc4d03a7eb92abd2a9
parentbe88dae8e2a9cda2b900040318c70a3d3c5b21cd
staging: rtl8723bs: reduce stack usage of rtw_cfg80211_unlink_bss

The build of xtensa allmodconfig gives warning of:
In function 'rtw_cfg80211_unlink_bss':
warning: the frame size of 1136 bytes is larger than 1024 bytes

Instead of having 'select_network' structure as a variable use it as a
pointer.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20191018104837.23246-1-sudipm.mukherjee@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c