OSDN Git Service

iwlwifi: RX API: remove unnecessary anonymous struct
authorJohannes Berg <johannes.berg@intel.com>
Tue, 22 May 2018 12:25:59 +0000 (14:25 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 28 Sep 2018 05:57:21 +0000 (08:57 +0300)
There's no value in having an anonymous struct for holding
a few fields, remove it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/rx.h

index 2078ef4..415b884 100644 (file)
@@ -601,23 +601,21 @@ struct iwl_rx_mpdu_desc {
         */
        u8 mac_phy_idx;
        /* DW4 - carries csum data only when rpa_en == 1 */
-       struct {
+       /**
+        * @raw_csum: raw checksum (alledgedly unreliable)
+        */
+       __le16 raw_csum;
+
+       union {
+               /**
+                * @l3l4_flags: &enum iwl_rx_l3l4_flags
+                */
+               __le16 l3l4_flags;
+
                /**
-                * @raw_csum: raw checksum (alledgedly unreliable)
+                * @sigb_common2: for HE sniffer, HE-SIG-B common part 2
                 */
-               __le16 raw_csum;
-
-               union {
-                       /**
-                        * @l3l4_flags: &enum iwl_rx_l3l4_flags
-                        */
-                       __le16 l3l4_flags;
-
-                       /**
-                        * @sigb_common2: for HE sniffer, HE-SIG-B common part 2
-                        */
-                       __le16 sigb_common2;
-               };
+               __le16 sigb_common2;
        };
        /* DW5 */
        /**