staging: rtl8192u: Remove typedef phy_ofdm_rx_status_rxsc_sgien_exintfflag
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 11 Mar 2017 17:21:00 +0000 (22:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 13:46:34 +0000 (14:46 +0100)
Remove typdef phy_ofdm_rx_status_rxsc_sgien_exintfflag and replace its uses
in the code.

Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U.h
drivers/staging/rtl8192u/r8192U_core.c

index a7ba8f37384e3eb6c3c376f506f758d24ff63043..524c1c94193ab2a56002c31e37648f8d507e36b3 100644 (file)
@@ -793,12 +793,12 @@ typedef struct _phy_cck_rx_status_report_819xusb {
 } phy_sts_cck_819xusb_t;
 
 
-typedef struct _phy_ofdm_rx_status_rxsc_sgien_exintfflag {
+struct phy_ofdm_rx_status_rxsc_sgien_exintfflag {
        u8                      reserved:4;
        u8                      rxsc:2;
        u8                      sgi_en:1;
        u8                      ex_intf_flag:1;
-} phy_ofdm_rx_status_rxsc_sgien_exintfflag;
+};
 
 typedef enum _RT_CUSTOMER_ID {
        RT_CID_DEFAULT = 0,
index 13239f4afc8a741fb8d4853d47febdb95e17bc78..8448e83f64f3eee0cc596c3ef4e6931097fd922a 100644 (file)
@@ -4242,7 +4242,7 @@ static void rtl8192_query_rxphystatus(struct r8192_priv *priv,
 {
        phy_sts_ofdm_819xusb_t *pofdm_buf;
        phy_sts_cck_819xusb_t   *pcck_buf;
-       phy_ofdm_rx_status_rxsc_sgien_exintfflag *prxsc;
+       struct phy_ofdm_rx_status_rxsc_sgien_exintfflag *prxsc;
        u8      *prxpkt;
        u8      i, max_spatial_stream, tmp_rxsnr, tmp_rxevm, rxsc_sgien_exflg;
        s8      rx_pwr[4], rx_pwr_all = 0;
@@ -4432,7 +4432,7 @@ static void rtl8192_query_rxphystatus(struct r8192_priv *priv,
 
                /* record rx statistics for debug */
                rxsc_sgien_exflg = pofdm_buf->rxsc_sgien_exflg;
-               prxsc = (phy_ofdm_rx_status_rxsc_sgien_exintfflag *)
+               prxsc = (struct phy_ofdm_rx_status_rxsc_sgien_exintfflag *)
                        &rxsc_sgien_exflg;
                if (pdrvinfo->BW)       /* 40M channel */
                        priv->stats.received_bwtype[1 + prxsc->rxsc]++;