Skip to content
Commit 1bbdb7f7 authored by Zijun Hu's avatar Zijun Hu Committed by Johannes Berg
Browse files

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: default avatarZijun 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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 021d53a3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment