]> www.infradead.org Git - nvme.git/commit
net: rfkill: Correct return value in invalid parameter case
authorZijun Hu <quic_zijuhu@quicinc.com>
Thu, 13 Jun 2024 14:04:36 +0000 (22:04 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Jun 2024 08:49:01 +0000 (10:49 +0200)
commit1bbdb7f7a4ebf2596b06a6bb84505a4a37a66d2e
tree1887d3ae5ce1d282ad3046dd7fcec85b7915193b
parent021d53a3d87eeb9dbba524ac515651242a2a7e3b
net: rfkill: Correct return value in invalid parameter case

rfkill_set_hw_state_reason() does not return current combined
block state when its parameter @reason is invalid, that is
wrong according to its comments, fix it by correcting the
value returned.

Also reformat the WARN while at it.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://patch.msgid.link/1718287476-28227-1-git-send-email-quic_zijuhu@quicinc.com
[edit/reformat commit message, remove unneeded variable]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/rfkill/core.c