Geert UytterhoevenandFelix Fietkau f8a0da45ab mt76: Fix comparisons with invalid hardware key index
With gcc 4.1.2:

    drivers/net/wireless/mediatek/mt76/mt76x0/tx.c: In function ‘mt76x0_tx’:
    drivers/net/wireless/mediatek/mt76/mt76x0/tx.c:169: warning: comparison is always true due to limited range of data type
    drivers/net/wireless/mediatek/mt76/mt76x2_tx_common.c: In function ‘mt76x2_tx’:
    drivers/net/wireless/mediatek/mt76/mt76x2_tx_common.c:35: warning: comparison is always true due to limited range of data type

While assigning -1 to a u8 works fine, comparing with -1 does not work
as expected.

Fix this by comparing with 0xff, like is already done in some other
places.

Signed-off-by: Geert Uytterhoeven <[email protected]>
2018-09-11 13:49:19 +02:00
2015-12-13 17:54:16 +01:00
2018-04-09 11:34:04 +02:00
2018-09-11 13:49:19 +02:00
2018-09-11 13:49:19 +02:00
2016-09-25 18:13:12 +02:00
2016-09-04 17:33:28 +02:00
2016-09-04 17:33:28 +02:00
2016-09-04 17:33:28 +02:00
2016-09-04 17:33:28 +02:00
2016-09-04 17:33:28 +02:00
2018-08-22 12:26:35 +02:00
2016-09-04 17:33:28 +02:00
2018-08-22 12:26:35 +02:00
2016-09-04 17:33:28 +02:00
2018-08-24 14:00:05 +02:00
2016-09-04 17:33:28 +02:00
2018-08-22 12:26:35 +02:00
2016-09-04 17:33:28 +02:00
2018-09-11 13:49:19 +02:00
2018-09-11 13:49:19 +02:00
2016-09-04 18:06:48 +02:00
S
Description
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
BSD-3-Clause
105 MiB
Languages
C 99.7%
Perl 0.2%
Makefile 0.1%