mt76: mt7615: fix some checkpatch warnings
authorRyder Lee <ryder.lee@mediatek.com>
Wed, 24 Jul 2019 08:58:17 +0000 (16:58 +0800)
committerFelix Fietkau <nbd@nbd.name>
Thu, 5 Sep 2019 15:42:31 +0000 (17:42 +0200)
This fixes the following checkpatch warnings:

WARNING: Improper SPDX comment style
Fix blank lines.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
drivers/net/wireless/mediatek/mt76/mt7615/mcu.c

index ed605fcc99f9f9b1d9f8010baea92d8216a86bb2..2618248946a1f31ab53ee6e6ee9fd4478e9ec64b 100644 (file)
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: ISC */
+// SPDX-License-Identifier: ISC
 
 #include "mt7615.h"
 
index b8d87529b85b993bf066e47c09df4c518a5f14aa..642c3a21cc89ce9dcd3c274b95b60ecfcd63a08e 100644 (file)
@@ -514,7 +514,6 @@ void mt7615_mac_set_rates(struct mt7615_dev *dev, struct mt7615_sta *sta,
 
                        rates[i].idx--;
                }
-
        }
 
        val[0] = mt7615_mac_tx_rate_val(dev, &rates[0], stbc, &bw);
@@ -819,8 +818,9 @@ static bool mt7615_fill_txs(struct mt7615_dev *dev, struct mt7615_sta *sta,
                        sta->rate_probe = false;
                }
                spin_unlock_bh(&dev->mt76.lock);
-       } else
+       } else {
                info->status.rates[0] = rs->rates[first_idx / 2];
+       }
        info->status.rates[0].count = 0;
 
        for (i = 0, idx = first_idx; count && idx <= last_idx; idx++) {
index c1f71213ef076c0a5f14796132c3ad94faaa0a52..51554af5aa2d647f876883cd69bf66440d8391dc 100644 (file)
@@ -1574,5 +1574,3 @@ int mt7615_mcu_set_rx_ba(struct mt7615_dev *dev,
        return __mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD_WTBL_UPDATE,
                                   &wtbl_req, sizeof(wtbl_req), true);
 }
-
-