staging:rtl8192u: Remove typedef from structure - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Fri, 20 Jul 2018 20:21:30 +0000 (21:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 06:58:32 +0000 (08:58 +0200)
Remove the typedef directive from struct _CHNL_TXPOWER_TRIPLE. This is a
coding style change which clears a checkpatch issue with declaring new types.
There should be no impact on runtime execution.

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

index ba284bfb3b6da1d146a99e00e57eff5ac42c02d3..8ac08ee5256ea41ef13c14253d73aff92d02ce01 100644 (file)
@@ -54,13 +54,13 @@ void Dot11d_UpdateCountryIe(struct ieee80211_device *dev, u8 *pTaddr,
 {
        PRT_DOT11D_INFO pDot11dInfo = GET_DOT11D_INFO(dev);
        u8 i, j, NumTriples, MaxChnlNum;
-       PCHNL_TXPOWER_TRIPLE pTriple;
+       struct chnl_txpower_triple *pTriple;
 
        memset(pDot11dInfo->channel_map, 0, MAX_CHANNEL_NUMBER+1);
        memset(pDot11dInfo->MaxTxPwrDbmList, 0xFF, MAX_CHANNEL_NUMBER+1);
        MaxChnlNum = 0;
        NumTriples = (CoutryIeLen - 3) / 3; /* skip 3-byte country string. */
-       pTriple = (PCHNL_TXPOWER_TRIPLE)(pCoutryIe + 3);
+       pTriple = (struct chnl_txpower_triple *)(pCoutryIe + 3);
        for (i = 0; i < NumTriples; i++) {
                if (MaxChnlNum >= pTriple->FirstChnl) {
                        /* It is not in a monotonically increasing order, so
@@ -83,7 +83,7 @@ void Dot11d_UpdateCountryIe(struct ieee80211_device *dev, u8 *pTaddr,
                        MaxChnlNum = pTriple->FirstChnl + j;
                }
 
-               pTriple = (PCHNL_TXPOWER_TRIPLE)((u8 *)pTriple + 3);
+               pTriple = (struct chnl_txpower_triple *)((u8 *)pTriple + 3);
        }
        netdev_info(dev->dev, "Channel List:");
        for (i = 1; i <= MAX_CHANNEL_NUMBER; i++)
index 23ab2dae8347d9e1e6cf3ffe53df344312ad8d35..9471279cf8e6669d0d4c3aeb776ee0b1892bda0c 100644 (file)
@@ -4,11 +4,11 @@
 
 #include "ieee80211.h"
 
-typedef struct _CHNL_TXPOWER_TRIPLE {
+struct chnl_txpower_triple {
        u8 FirstChnl;
        u8  NumChnls;
        u8  MaxTxPowerInDbm;
-} CHNL_TXPOWER_TRIPLE, *PCHNL_TXPOWER_TRIPLE;
+};
 
 typedef enum _DOT11D_STATE {
        DOT11D_STATE_NONE = 0,