]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: htc: clean up statistics macros
authorPavel Skripkin <paskripkin@gmail.com>
Mon, 13 Jun 2022 18:44:07 +0000 (21:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:39 +0000 (16:43 +0100)
commitcd923bc07ebc97c4cf9b5e9ab8925658b123667a
treec54d700f3b6dbc8595493504384ec1ffa7738159
parentbd1831e0b51dd07474c45a2ed51a1b08903a2edc
ath9k: htc: clean up statistics macros

[ Upstream commit 7f9e6dc7b39dc693bc3c2f368d454f0e6aef087d ]

I've changed *STAT_* macros a bit in previous patch and I seems like
they become really unreadable. Align these macros definitions to make
code cleaner and fix folllowing checkpatch warning

ERROR: Macros with complex values should be enclosed in parentheses

Also, statistics macros now accept an hif_dev as argument, since
macros that depend on having a local variable with a magic name
don't abide by the coding style.

No functional change

Suggested-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/ebb2306d06a496cd1b032155ae52fdc5fa8cc2c5.1655145743.git.paskripkin@gmail.com
Stable-dep-of: 0af54343a762 ("wifi: ath9k: hif_usb: clean up skbs if ath9k_hif_usb_rx_stream() fails")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath9k/hif_usb.c
drivers/net/wireless/ath/ath9k/htc.h
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c