staging: r8188eu: remove sta2sta_data_frame prototype
authorMartin Kaiser <martin@kaiser.cx>
Thu, 7 Jul 2022 19:49:13 +0000 (21:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Jul 2022 12:29:07 +0000 (14:29 +0200)
Remove the prototype for sta2sta_data_frame. Make the function static, it
is used only inside rtw_recv.c.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220707194914.63794-2-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c

index 32cd452d1f3d972ede7439c52521fa5e0b54d225..6a2a1b1664ac617b54af3e59edbabdcf5c2e91b5 100644 (file)
@@ -556,13 +556,8 @@ static void count_rx_stats(struct adapter *padapter, struct recv_frame *prframe,
        }
 }
 
-int sta2sta_data_frame(
-       struct adapter *adapter,
-       struct recv_frame *precv_frame,
-       struct sta_info **psta
-);
-
-int sta2sta_data_frame(struct adapter *adapter, struct recv_frame *precv_frame, struct sta_info **psta)
+static int sta2sta_data_frame(struct adapter *adapter,
+                             struct recv_frame *precv_frame, struct sta_info **psta)
 {
        u8 *ptr = precv_frame->rx_data;
        int ret = _SUCCESS;