Skip to content

Commit

Permalink
rtw88: Simplify bool comparison
Browse files Browse the repository at this point in the history
Fix the following coccicheck warning:
 ./drivers/net/wireless/realtek/rtw88/debug.c:800:17-23: WARNING:
Comparison of 0/1 to bool variable

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: YANG LI <abaci-bugfix@linux.alibaba.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1610445040-23599-1-git-send-email-abaci-bugfix@linux.alibaba.com
  • Loading branch information
YANG LI authored and Kalle Valo committed Jan 14, 2021
1 parent 5f782c1 commit d3a78c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/realtek/rtw88/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ static ssize_t rtw_debugfs_set_coex_enable(struct file *filp,
}

mutex_lock(&rtwdev->mutex);
coex->manual_control = enable == 0;
coex->manual_control = !enable;
mutex_unlock(&rtwdev->mutex);

return count;
Expand Down

0 comments on commit d3a78c7

Please sign in to comment.