staging: rtl8188eu: clean up blank line style issues
authorMichael Straube <straube.linux@gmail.com>
Wed, 16 Sep 2020 06:42:57 +0000 (08:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Sep 2020 11:13:00 +0000 (13:13 +0200)
Add missing and remove unnecessary blank lines to clear the following
checkpatch issues.

WARNING: Missing a blank line after declarations
CHECK: Please use a blank line after function/struct/union/enum declarations
CHECK: Blank lines aren't necessary before a close brace '}'
CHECK: Please don't use multiple blank lines

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20200916064257.14902-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_security.c
drivers/staging/rtl8188eu/hal/odm.c
drivers/staging/rtl8188eu/hal/rf.c
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/include/rtl8188e_xmit.h
drivers/staging/rtl8188eu/include/rtw_recv.h
drivers/staging/rtl8188eu/include/wifi.h
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c

index 78a8ac6..d2d5625 100644 (file)
@@ -371,8 +371,6 @@ void rtw_seccalctkipmic(u8 *key, u8 *header, u8 *data, u32 data_len, u8 *mic_cod
        rtw_secgetmic(&micdata, mic_code);
 }
 
-
-
 /* macros for extraction/creation of unsigned char/unsigned short values  */
 #define RotR1(v16)   ((((v16) >> 1) & 0x7FFF) ^ (((v16) & 1) << 15))
 #define   Lo8(v16)   ((u8)((v16)       & 0x00FF))
@@ -662,7 +660,6 @@ u32 rtw_tkip_decrypt(struct adapter *padapter, struct recv_frame *precvframe)
        u8      crc[4];
        struct arc4context mycontext;
        int                     length;
-
        u8      *pframe, *payload, *iv, *prwskey;
        union pn48 dot11txpn;
        struct  sta_info                *stainfo;
@@ -670,7 +667,6 @@ u32 rtw_tkip_decrypt(struct adapter *padapter, struct recv_frame *precvframe)
        struct  security_priv   *psecuritypriv = &padapter->securitypriv;
        u32             res = _SUCCESS;
 
-
        pframe = (unsigned char *)precvframe->pkt->data;
 
        /* 4 start to decrypt recvframe */
@@ -728,7 +724,6 @@ exit:
 
 /* 3                   ===== AES related ===== */
 
-
 #define MAX_MSG_SIZE   2048
 /*****************************/
 /******** SBOX Table *********/
@@ -1519,6 +1514,7 @@ const u8 Td4s[256] = {
        0x17U, 0x2bU, 0x04U, 0x7eU, 0xbaU, 0x77U, 0xd6U, 0x26U,
        0xe1U, 0x69U, 0x14U, 0x63U, 0x55U, 0x21U, 0x0cU, 0x7dU,
 };
+
 const u8 rcons[] = {
        0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1B, 0x36
        /* for 128-bit blocks, Rijndael never uses more than 10 rcon values */
index 2897480..edc278e 100644 (file)
@@ -969,7 +969,6 @@ void ODM_TXPowerTrackingCheck(struct odm_dm_struct *pDM_Odm)
 
        rtl88eu_dm_txpower_tracking_callback_thermalmeter(Adapter);
        pDM_Odm->RFCalibrateInfo.TM_Trigger = 0;
-
 }
 
 /* 3============================================================ */
index 6702f26..aab0f54 100644 (file)
@@ -138,6 +138,7 @@ static void getpowerbase88e(struct adapter *adapt, u8 *pwr_level_ofdm,
                     (powerbase1 << 8) | powerbase1;
        *mcs_base = powerbase1;
 }
+
 static void get_rx_power_val_by_reg(struct adapter *adapt, u8 channel,
                                    u8 index, u32 *powerbase0, u32 *powerbase1,
                                    u32 *out_val)
index b44d602..56e937b 100644 (file)
@@ -69,6 +69,7 @@ void _rtw_init_queue(struct __queue *pqueue);
 struct rtw_netdev_priv_indicator {
        void *priv;
 };
+
 struct net_device *rtw_alloc_etherdev_with_old_priv(void *old_priv);
 
 static inline struct adapter *rtw_netdev_priv(struct net_device *netdev)
index 85efa41..04efbc8 100644 (file)
@@ -94,6 +94,7 @@ enum TXDESC_SC {
        SC_LOWER = 0x02,
        SC_DUPLICATE = 0x03
 };
+
 /* OFFSET 20 */
 #define SGI                    BIT(6)
 #define USB_TXAGG_NUM_SHT      24
index b281b9e..e20bab4 100644 (file)
@@ -62,7 +62,9 @@ struct signal_stat {
        u32     total_num;              /* num of valid elements */
        u32     total_val;              /* sum of valid elements */
 };
+
 #define MAX_PATH_NUM_92CS              3
+
 struct phy_info {
        u8      RxPWDBAll;
        u8      SignalQuality;   /*  in 0-100 index. */
index 217be80..118e215 100644 (file)
@@ -331,6 +331,7 @@ static inline int IsFrameTypeCtrl(unsigned char *pframe)
        else
                return false;
 }
+
 /*-----------------------------------------------------------------------------
                        Below is for the security related definition
 ------------------------------------------------------------------------------*/
index 77ecf4f..d10a078 100644 (file)
@@ -124,6 +124,7 @@ static char *translate_scan(struct adapter *padapter,
 
        if (p && ht_ielen > 0) {
                struct ieee80211_ht_cap *pht_capie;
+
                ht_cap = true;
 
                pht_capie = (struct ieee80211_ht_cap *)(p + 2);