* Re: [PATCH] ath5k: Use swap() instead of open coding it
[not found] <20220704130614.37467-1-tanzhongjun@coolpad.com>
@ 2022-07-08 5:00 ` Kalle Valo
2022-07-08 6:50 ` Jiri Slaby
1 sibling, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2022-07-08 5:00 UTC (permalink / raw)
To: Tan Zhongjun
Cc: jirislaby, mickflemm, mcgrof, davem, edumazet, kuba, pabeni,
linux-wireless, netdev, linux-kernel
"Tan Zhongjun" <tanzhongjun@coolpad.com> writes:
> Use swap() instead of open coding it.
>
> Signed-off-by: Tan Zhongjun
Please don't send HTML emails, our lists automatically drop those. More
info in the wiki below.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ath5k: Use swap() instead of open coding it
[not found] <20220704130614.37467-1-tanzhongjun@coolpad.com>
2022-07-08 5:00 ` [PATCH] ath5k: Use swap() instead of open coding it Kalle Valo
@ 2022-07-08 6:50 ` Jiri Slaby
1 sibling, 0 replies; 2+ messages in thread
From: Jiri Slaby @ 2022-07-08 6:50 UTC (permalink / raw)
To: Tan Zhongjun, mickflemm, mcgrof, kvalo, davem, edumazet, kuba, pabeni
Cc: linux-wireless, netdev, linux-kernel
On 04. 07. 22, 15:06, Tan Zhongjun wrote:
> Use swap() instead of open coding it.
This still holds:
https://lore.kernel.org/all/0c3acbd4-6ab2-5cc5-6293-54e30093cce2@kernel.org/
> Signed-off-by: Tan Zhongjun
This is a wrong S-O-B line.
> ---
> drivers/net/wireless/ath/ath5k/phy.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath5k/phy.c
> b/drivers/net/wireless/ath/ath5k/phy.c
> index 5797ef9c73d7..c2cf4b79dd95 100644
> --- a/drivers/net/wireless/ath/ath5k/phy.c
> +++ b/drivers/net/wireless/ath/ath5k/phy.c
> @@ -1569,9 +1569,7 @@ ath5k_hw_get_median_noise_floor(struct ath5k_hw *ah)
> for (i = 0; i < ATH5K_NF_CAL_HIST_MAX - 1; i++) {
> for (j = 1; j < ATH5K_NF_CAL_HIST_MAX - i; j++) {
> if (sort[j] > sort[j - 1]) {
> - tmp = sort[j];
> - sort[j] = sort[j - 1];
> - sort[j - 1] = tmp;
> + swap(sort[j], sort[j - 1]);
> }
> }
> }
> --
> 2.29.0
>
--
js
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-08 6:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20220704130614.37467-1-tanzhongjun@coolpad.com>
2022-07-08 5:00 ` [PATCH] ath5k: Use swap() instead of open coding it Kalle Valo
2022-07-08 6:50 ` Jiri Slaby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).