]> git.baikalelectronics.ru Git - kernel.git/commit
staging; rtl8723bs: Remove unnecessary function rtw_init_mlme_priv()
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>
Fri, 22 Mar 2019 14:38:23 +0000 (20:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Mar 2019 08:50:02 +0000 (09:50 +0100)
commit275e85781c49fcf7b57f72427ba30a46ec6097e1
tree115f07b04ef4377a5814f81bd4aedf7b214a3d2f
parentd236f0ba97ae873149dd34b44c85519e4bb93092
staging; rtl8723bs: Remove unnecessary function rtw_init_mlme_priv()

Remove function rtw_init_mlme_priv() as all it does is call
_rtw_init_mlme_priv().
Change the name of _rtw_init_mlme_priv() to rtw_init_mlme_priv() and its
return type to int.
Remove references to _rtw_init_mlme_priv() from the corresponding header
file.
Suggestion to delete return variable from rtw_init_mlme_priv() put forward
by Coccinelle using ret.cocci.

Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme.c
drivers/staging/rtl8723bs/include/rtw_mlme.h