staging: r8188eu: make OnAuthClient static
authorMartin Kaiser <martin@kaiser.cx>
Mon, 24 Oct 2022 08:14:08 +0000 (10:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2022 17:19:38 +0000 (19:19 +0200)
OnAuthClient is used only in rtw_mlme_ext.c. Make this function static.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20221024081417.66441-9-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c
drivers/staging/r8188eu/include/rtw_mlme_ext.h

index 309376a..a63146c 100644 (file)
@@ -800,7 +800,7 @@ auth_fail:
        return _FAIL;
 }
 
-unsigned int OnAuthClient(struct adapter *padapter, struct recv_frame *precv_frame)
+static unsigned int OnAuthClient(struct adapter *padapter, struct recv_frame *precv_frame)
 {
        unsigned int    seq, len, status, offset;
        unsigned char   *p;
index c1bc554..866d358 100644 (file)
@@ -538,8 +538,6 @@ void start_create_ibss(struct adapter *padapter);
 
 unsigned int OnAuth(struct adapter *padapter,
                    struct recv_frame *precv_frame);
-unsigned int OnAuthClient(struct adapter *padapter,
-                         struct recv_frame *precv_frame);
 unsigned int OnDeAuth(struct adapter *padapter,
                      struct recv_frame *precv_frame);
 unsigned int OnAction(struct adapter *padapter,