Zijun Hu 1bbdb7f7a4 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>
2024-06-26 10:49:01 +02:00
..
2024-05-29 09:25:15 -07:00
2024-05-18 10:32:39 -07:00
2024-06-10 18:02:14 -07:00
2024-06-05 10:18:06 +01:00
2024-02-20 15:32:45 +01:00
2024-06-10 11:54:18 +01:00
2024-01-11 10:07:29 -08:00
2024-05-28 07:27:29 -07:00
2024-06-10 18:02:14 -07:00
2024-05-18 10:32:39 -07:00
2024-05-16 09:47:45 +01:00
2024-05-23 13:51:09 -07:00
2023-12-12 14:24:14 +01:00
2024-01-31 16:41:16 -08:00