diff options
| author | Kalle Valo <[email protected]> | 2024-01-30 17:15:55 +0200 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2024-02-05 20:16:29 +0200 |
| commit | 7ceade653429c1c6af387d4039199eeae3b685c1 (patch) | |
| tree | 32ee7900de8514fc221f75f3712e392fdf3507db /tools/perf/scripts/python/task-analyzer.py | |
| parent | 0583e5acaf43644c4d4f476979c18bf1a034639f (diff) | |
wifi: cw1200: fix __le16 sparse warnings
Sparse warns:
drivers/net/wireless/st/cw1200/cw1200_spi.c:83:17: got restricted __le16 [usertype]
drivers/net/wireless/st/cw1200/cw1200_spi.c:148:17: warning: incorrect type in assignment (different base types)
drivers/net/wireless/st/cw1200/cw1200_spi.c:148:17: expected unsigned short [addressable] [assigned] [usertype] regaddr
drivers/net/wireless/st/cw1200/cw1200_spi.c:148:17: got restricted __le16 [usertype]
These cpu_to_le16() calls are not really making any sense to me. On a big
endian system we first convert regaddr from big to little using cpu_to_le16()
but immediately after we convert them back to big endian? So just remove them.
Compile tested only.
Signed-off-by: Kalle Valo <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions