lkml.org 
[lkml]   [2022]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/4] staging: r8188eu: make _rtw_init_mlme_priv static
    Date
    The _rtw_init_mlme_priv function is used only in rtw_mlme.c.
    It can be declared as static.

    Signed-off-by: Martin Kaiser <martin@kaiser.cx>
    ---
    drivers/staging/r8188eu/core/rtw_mlme.c | 2 +-
    drivers/staging/r8188eu/include/rtw_mlme.h | 2 --
    2 files changed, 1 insertion(+), 3 deletions(-)

    diff --git a/drivers/staging/r8188eu/core/rtw_mlme.c b/drivers/staging/r8188eu/core/rtw_mlme.c
    index 6f0bff186477..a98712e85d6d 100644
    --- a/drivers/staging/r8188eu/core/rtw_mlme.c
    +++ b/drivers/staging/r8188eu/core/rtw_mlme.c
    @@ -31,7 +31,7 @@ u8 rtw_to_roaming(struct adapter *adapter)
    return adapter->mlmepriv.to_roaming;
    }

    -int _rtw_init_mlme_priv(struct adapter *padapter)
    +static int _rtw_init_mlme_priv(struct adapter *padapter)
    {
    int i;
    u8 *pbuf;
    diff --git a/drivers/staging/r8188eu/include/rtw_mlme.h b/drivers/staging/r8188eu/include/rtw_mlme.h
    index 42d850f9d777..01de253c0376 100644
    --- a/drivers/staging/r8188eu/include/rtw_mlme.h
    +++ b/drivers/staging/r8188eu/include/rtw_mlme.h
    @@ -558,8 +558,6 @@ void rtw_scan_timeout_handler(struct adapter *adapter);
    #define rtw_set_scan_deny_timer_hdl(adapter) do {} while (0)
    #define rtw_set_scan_deny(adapter, ms) do {} while (0)

    -int _rtw_init_mlme_priv(struct adapter *padapter);
    -
    void rtw_free_mlme_priv_ie_data(struct mlme_priv *pmlmepriv);

    void _rtw_free_mlme_priv(struct mlme_priv *pmlmepriv);
    --
    2.30.2
    \
     
     \ /
      Last update: 2022-03-22 21:25    [W:2.978 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site