[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5d901b213389c38eb5bd1df37cb8a1c3d82ebba5.camel@sipsolutions.net>
Date: Wed, 12 Jun 2024 10:15:33 +0200
From: Johannes Berg <johannes@...solutions.net>
To: Zijun Hu <quic_zijuhu@...cinc.com>, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
emmanuel.grumbach@...el.com
Cc: linux-wireless@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH v1 1/2] net: rfkill: Fix a wrongly handling error case
>
> use pr_err() instead of WARN()
> for this error case handling.
I don't see anything wrong with the WARN here, it's the user/driver
calling it completely incorrectly.
I also don't really think this is a *fix*, if you used the API
incorrectly you can't necessarily expect a correct return value, I
guess, but anyway it shouldn't happen in the first place.
I'm happy to take the return value change (only) as a cleanup, if you
wish to resend that.
> Fixed by
Please also read
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
johannes
Powered by blists - more mailing lists