aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorTom Rix <[email protected]>2020-10-11 08:54:38 -0700
committerKalle Valo <[email protected]>2020-11-02 20:16:02 +0200
commitddcd945e556e2cc6be8f88ef0271b56927ffbe98 (patch)
tree82e1f9b694c12082fba67bde9e01bb02ca498352 /tools/perf/scripts/python/check-perf-trace.py
parent3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff)
rtw88: fix fw_fifo_addr check
The clang build reports this warning fw.c:1485:21: warning: address of array 'rtwdev->chip->fw_fifo_addr' will always evaluate to 'true' if (!rtwdev->chip->fw_fifo_addr) { fw_fifo_addr is an array in rtw_chip_info so it is always nonzero. A better check is if the first element of the array is nonzero. In the cases where fw_fifo_addr is initialized by rtw88b and rtw88c, the first array element is 0x780. Fixes: 0fbc2f0f34cc ("rtw88: add dump firmware fifo support") Signed-off-by: Tom Rix <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Acked-by: Tzu-En Huang <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions