]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7915: remove set but not used variable 'msta'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 28 May 2020 07:48:29 +0000 (07:48 +0000)
committerFelix Fietkau <nbd@nbd.name>
Thu, 28 May 2020 15:57:25 +0000 (17:57 +0200)
commit5f99d8da6bcf525a4c425c4b419144f6c5ee66fb
tree24ff3532955cffe6cafe1c6878e5bfc317f7f29e
parentcda7b7b9b3587e2b8835e8cc32779260f76dca6f
mt76: mt7915: remove set but not used variable 'msta'

Cc: linux-wireless@vger.kernel.org,
    linux-arm-kernel@lists.infradead.org,
    linux-mediatek@lists.infradead.org,
    netdev@vger.kernel.org,
    kernel-janitors@vger.kernel.org

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/wireless/mediatek/mt76/mt7915/mcu.c: In function 'mt7915_mcu_sta_txbf_type':
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:1805:21: warning:
 variable 'msta' set but not used [-Wunused-but-set-variable]

It is never used, so can be removed.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mcu.c