Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: bcm: Simplify bool comparison

Fix the follow coccicheck warnings:

./drivers/pinctrl/bcm/pinctrl-ns2-mux.c:856:29-38: WARNING:
Comparison to bool.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Link: https://lore.kernel.org/r/1610705349-24310-1-git-send-email-abaci-bugfix@linux.alibaba.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Jiapeng Zhong and committed by
Linus Walleij
e95d931a 9aa35178

+1 -1
+1 -1
drivers/pinctrl/bcm/pinctrl-ns2-mux.c
··· 853 853 switch (param) { 854 854 case PIN_CONFIG_BIAS_DISABLE: 855 855 ns2_pin_get_pull(pctldev, pin, &pull_up, &pull_down); 856 - if ((pull_up == false) && (pull_down == false)) 856 + if (!pull_up && !pull_down) 857 857 return 0; 858 858 else 859 859 return -EINVAL;