]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging:rtl8192u: remove typedef from struct rx_drvinfo_819x_usb
authorJohn Whitmore <johnfwhitmore@gmail.com>
Wed, 11 Jul 2018 19:21:48 +0000 (20:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Jul 2018 09:40:46 +0000 (11:40 +0200)
Removed the typedef from the struct rx_drvinfo_819x_usb  to leave it as a
simple structure.

This clears the issue flagged by checkpatch, defining new types.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U.h
drivers/staging/rtl8192u/r8192U_core.c

index 50aa082d318255fc27019c7bd13bc5556d5c45b5..4b67783b617e5b6cba8216688717691abe9cbecc 100644 (file)
@@ -294,7 +294,7 @@ struct rx_desc_819x_usb {
        u32                 Reserved2;
 };
 
-typedef struct rx_drvinfo_819x_usb {
+struct rx_drvinfo_819x_usb {
        /* DWORD 0 */
        u16                 Reserved1:12;
        u16                 PartAggr:1;
@@ -315,7 +315,7 @@ typedef struct rx_drvinfo_819x_usb {
        /* DWORD 1 */
        u32                  TSFL;
 
-} rx_drvinfo_819x_usb, *prx_drvinfo_819x_usb;
+};
 
 /* Support till 64 bit bus width OS */
 #define MAX_DEV_ADDR_SIZE              8
index 655aae06f8a486d26933177f910e112cc2d6d836..c01e8d76a26548c09ef9c09d945002353806e0a9 100644 (file)
@@ -4194,7 +4194,7 @@ static inline bool rx_hal_is_cck_rate(struct rx_drvinfo_819x_usb *pdrvinfo)
 
 static void rtl8192_query_rxphystatus(struct r8192_priv *priv,
                                      struct ieee80211_rx_stats *pstats,
-                                     rx_drvinfo_819x_usb  *pdrvinfo,
+                                     struct rx_drvinfo_819x_usb  *pdrvinfo,
                                      struct ieee80211_rx_stats *precord_stats,
                                      bool bpacket_match_bssid,
                                      bool bpacket_toself,
@@ -4231,7 +4231,7 @@ static void rtl8192_query_rxphystatus(struct r8192_priv *priv,
        prxpkt = (u8 *)pdrvinfo;
 
        /* Move pointer to the 16th bytes. Phy status start address. */
-       prxpkt += sizeof(rx_drvinfo_819x_usb);
+       prxpkt += sizeof(struct rx_drvinfo_819x_usb);
 
        /* Initial the cck and ofdm buffer pointer */
        pcck_buf = (phy_sts_cck_819xusb_t *)prxpkt;
@@ -4431,7 +4431,7 @@ static void rtl8192_record_rxdesc_forlateruse(
 
 static void TranslateRxSignalStuff819xUsb(struct sk_buff *skb,
                                          struct ieee80211_rx_stats *pstats,
-                                         rx_drvinfo_819x_usb  *pdrvinfo)
+                                         struct rx_drvinfo_819x_usb  *pdrvinfo)
 {
        /* TODO: We must only check packet for current MAC address.
         * Not finish
@@ -4630,7 +4630,7 @@ static void query_rxdesc_status(struct sk_buff *skb,
        struct rtl8192_rx_info *info = (struct rtl8192_rx_info *)skb->cb;
        struct net_device *dev = info->dev;
        struct r8192_priv *priv = (struct r8192_priv *)ieee80211_priv(dev);
-       rx_drvinfo_819x_usb  *driver_info = NULL;
+       struct rx_drvinfo_819x_usb  *driver_info = NULL;
 
        /* Get Rx Descriptor Information */
        struct rx_desc_819x_usb *desc = (struct rx_desc_819x_usb *)skb->data;
@@ -4657,7 +4657,7 @@ static void query_rxdesc_status(struct sk_buff *skb,
         * Driver info are written to the RxBuffer following rx desc
         */
        if (stats->RxDrvInfoSize != 0) {
-               driver_info = (rx_drvinfo_819x_usb *)(
+               driver_info = (struct rx_drvinfo_819x_usb *)(
                                skb->data
                                + sizeof(struct rx_desc_819x_usb)
                                + stats->RxBufShift