staging:r8188eu: change rtl8188e_process_phy_info function argument type
authorIvan Safonov <insafonov@gmail.com>
Fri, 30 Sep 2016 14:36:14 +0000 (21:36 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Oct 2016 15:31:15 +0000 (17:31 +0200)
prframe is (void *), but function used only with (struct recv_frame *).

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188e_rxdesc.c
drivers/staging/rtl8188eu/include/rtl8188e_recv.h

index 8aea7104f4590d4de7087174ada2145af527894b..fa2cfd5768de6971c874f0e1aebc578508ad3850 100644 (file)
@@ -57,10 +57,9 @@ static void process_link_qual(struct adapter *padapter,
        signal_stat->avg_val = signal_stat->total_val / signal_stat->total_num;
 }
 
-void rtl8188e_process_phy_info(struct adapter *padapter, void *prframe)
+void rtl8188e_process_phy_info(struct adapter *padapter,
+                              struct recv_frame *precvframe)
 {
-       struct recv_frame *precvframe = prframe;
-
        /*  Check RSSI */
        process_rssi(padapter, precvframe);
        /*  Check EVM */
index 516c6d767c1ba5f3738babd75b06baee76286d5c..80832a5f07328253f5f8b3adf5dab48ec6517c66 100644 (file)
@@ -54,7 +54,8 @@ enum rx_packet_type {
 void rtl8188eu_recv_hdl(struct adapter *padapter, struct recv_buf *precvbuf);
 void rtl8188eu_recv_tasklet(void *priv);
 void rtl8188e_query_rx_phy_status(struct recv_frame *fr, struct phy_stat *phy);
-void rtl8188e_process_phy_info(struct adapter *padapter, void *prframe);
+void rtl8188e_process_phy_info(struct adapter *padapter,
+                              struct recv_frame *prframe);
 void update_recvframe_phyinfo_88e(struct recv_frame *fra, struct phy_stat *phy);
 void update_recvframe_attrib_88e(struct recv_frame *fra,
                                 struct recv_stat *stat);