staging: r8188eu: recvframe_push is not used
authorMartin Kaiser <martin@kaiser.cx>
Sat, 26 Feb 2022 18:14:55 +0000 (19:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Mar 2022 21:33:37 +0000 (22:33 +0100)
The recvframe_push function is not used. It can be removed.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220226181457.1138035-6-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/rtw_recv.h

index a417a70..25afcbe 100644 (file)
@@ -286,26 +286,6 @@ static inline u8 *get_rx_status(struct recv_frame *precvframe)
        return get_rxmem(precvframe);
 }
 
-static inline u8 *recvframe_push(struct recv_frame *precvframe, int sz)
-{
-       /*  append data before rx_data */
-
-       /* add data to the start of recv_frame
- *
- *      This function extends the used data area of the recv_frame at the buffer
- *      start. rx_data must be still larger than rx_head, after pushing.
- */
-       if (precvframe == NULL)
-               return NULL;
-       precvframe->rx_data -= sz ;
-       if (precvframe->rx_data < precvframe->rx_head) {
-               precvframe->rx_data += sz;
-               return NULL;
-       }
-       precvframe->len += sz;
-       return precvframe->rx_data;
-}
-
 static inline u8 *recvframe_pull(struct recv_frame *precvframe, int sz)
 {
        /*  rx_data += sz; move rx_data sz bytes  hereafter */