diff options
| author | Geert Uytterhoeven <geert@linux-m68k.org> | 2018-08-24 00:27:38 +0300 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2018-08-31 18:52:29 +0300 |
| commit | 81c8eccc2404d06082025b773f1d90e8c861bc6a (patch) | |
| tree | e503651ff397a327d1471d9749f76059128c4f28 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 4c62764d0fc21a34ffc44eec1210038c3a2e4473 (diff) | |
| download | linux-81c8eccc2404d06082025b773f1d90e8c861bc6a.tar.xz | |
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 <geert@linux-m68k.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
