diff options
author | Zijun Hu <[email protected]> | 2024-06-13 22:04:36 +0800 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2024-06-26 10:49:01 +0200 |
commit | 1bbdb7f7a4ebf2596b06a6bb84505a4a37a66d2e (patch) | |
tree | 1887d3ae5ce1d282ad3046dd7fcec85b7915193b /tools/net/ynl/lib/ynl.py | |
parent | 021d53a3d87eeb9dbba524ac515651242a2a7e3b (diff) |
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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
[edit/reformat commit message, remove unneeded variable]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/net/ynl/lib/ynl.py')
0 files changed, 0 insertions, 0 deletions