Commit fd6ed17
committed
wifi: ath11k: workaround too long expansion sparse warnings
In v6.7-rc1 sparse warns:
drivers/net/wireless/ath/ath11k/mac.c:4702:15: error: too long token expansion
drivers/net/wireless/ath/ath11k/mac.c:4702:15: error: too long token expansion
drivers/net/wireless/ath/ath11k/mac.c:8393:23: error: too long token expansion
drivers/net/wireless/ath/ath11k/mac.c:8393:23: error: too long token expansion
Workaround the warnings by refactoring the code to a new function, which also
reduces code duplication. And in the new function use max3() to make the code
more readable.
No functional changes, compile tested only.
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20231214161740.1582340-1-kvalo@kernel.org1 parent e75fda6 commit fd6ed17
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4654 | 4654 | | |
4655 | 4655 | | |
4656 | 4656 | | |
| 4657 | + | |
| 4658 | + | |
| 4659 | + | |
| 4660 | + | |
| 4661 | + | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
4657 | 4665 | | |
4658 | 4666 | | |
4659 | 4667 | | |
| |||
4699 | 4707 | | |
4700 | 4708 | | |
4701 | 4709 | | |
4702 | | - | |
4703 | | - | |
4704 | | - | |
| 4710 | + | |
4705 | 4711 | | |
4706 | 4712 | | |
4707 | 4713 | | |
| |||
8391 | 8397 | | |
8392 | 8398 | | |
8393 | 8399 | | |
8394 | | - | |
8395 | | - | |
8396 | | - | |
| 8400 | + | |
8397 | 8401 | | |
8398 | 8402 | | |
8399 | 8403 | | |
| |||
0 commit comments