mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
cfg80211: Do not compare with boolean in nl80211_common_reg_change_event
With the help of boolinit.cocci, we use !nl80211_reg_change_event_fill instead of (nl80211_reg_change_event_fill == false). Meanwhile, Clean up the code. Signed-off-by: zhong jiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
This commit is contained in:
parent
4b08d1b6a9
commit
24f6d765c8
1 changed files with 3 additions and 5 deletions
|
|
@ -14997,12 +14997,10 @@ void nl80211_common_reg_change_event(enum nl80211_commands cmd_id,
|
|||
return;
|
||||
|
||||
hdr = nl80211hdr_put(msg, 0, 0, 0, cmd_id);
|
||||
if (!hdr) {
|
||||
nlmsg_free(msg);
|
||||
return;
|
||||
}
|
||||
if (!hdr)
|
||||
goto nla_put_failure;
|
||||
|
||||
if (nl80211_reg_change_event_fill(msg, request) == false)
|
||||
if (!nl80211_reg_change_event_fill(msg, request))
|
||||
goto nla_put_failure;
|
||||
|
||||
genlmsg_end(msg, hdr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue