2024-03-25 18:12:00

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH v2] wifi: mt76: mt7915: workaround dubious x | !y warning

Kalle Valo <[email protected]> writes:

> Sparse warns:
>
> drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c:526:9: warning: dubious: x | !y
>
> Workaround it by using the '?' operator. Compile tested only.
>
> Signed-off-by: Kalle Valo <[email protected]>
> ---
> v2:
>
> * use parenthesis

Felix&Lorenzo, if this looks ok to you I would like to take this
directly to wireless-next. I'm aiming that the next wireless-next pull
request is sparse warning free :)

--
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches