staging: rtl8723bs: remove typedefs in odm_NoiseMonitor.h
authorMarco Cesati <marcocesati@gmail.com>
Fri, 12 Mar 2021 08:26:10 +0000 (09:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Mar 2021 16:25:39 +0000 (17:25 +0100)
This commit fixes the following checkpatch.pl warning:

    WARNING: do not add new typedefs
    #27: FILE: hal/odm_NoiseMonitor.h:27:
    +typedef struct _ODM_NOISE_MONITOR_ {

Signed-off-by: Marco Cesati <marco.cesati@gmail.com>
Link: https://lore.kernel.org/r/20210312082638.25512-6-marco.cesati@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/odm.h
drivers/staging/rtl8723bs/hal/odm_NoiseMonitor.h

index 0b8693a..9a73297 100644 (file)
@@ -1076,7 +1076,7 @@ struct DM_ODM_T { /* DM_Out_Source_Dynamic_Mechanism_Structure */
        u8 Adaptivity_IGI_upper;
        u8 NHM_cnt_0;
 
-       ODM_NOISE_MONITOR noise_level;/* ODM_MAX_CHANNEL_NUM]; */
+       struct ODM_NOISE_MONITOR noise_level;/* ODM_MAX_CHANNEL_NUM]; */
        /*  */
        /* 2 Define STA info. */
        /*  _ODM_STA_INFO */
index a7f13a8..0eb55d7 100644 (file)
@@ -24,10 +24,10 @@ struct noise_level {
 };
 
 
-typedef struct _ODM_NOISE_MONITOR_ {
+struct ODM_NOISE_MONITOR {
        s8 noise[MAX_RF_PATH];
        s16 noise_all;
-} ODM_NOISE_MONITOR;
+};
 
 s16 ODM_InbandNoise_Monitor(
        void *pDM_VOID,