diff options
author | Jiapeng Zhong <abaci-bugfix@linux.alibaba.com> | 2021-01-15 13:09:09 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-01-18 18:30:08 +0300 |
commit | e95d931a15bb6a78c5f40d27580cea5c87457871 (patch) | |
tree | b0758a113174406de242c65cb19ec9e0cf19de33 /drivers/pinctrl/bcm/pinctrl-ns2-mux.c | |
parent | 9aa351784e6962bb1aff97f7badfe028865860fb (diff) | |
download | linux-e95d931a15bb6a78c5f40d27580cea5c87457871.tar.xz |
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>
Diffstat (limited to 'drivers/pinctrl/bcm/pinctrl-ns2-mux.c')
-rw-r--r-- | drivers/pinctrl/bcm/pinctrl-ns2-mux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/bcm/pinctrl-ns2-mux.c b/drivers/pinctrl/bcm/pinctrl-ns2-mux.c index 57044ab376d3..0fe4a1fcdf00 100644 --- a/drivers/pinctrl/bcm/pinctrl-ns2-mux.c +++ b/drivers/pinctrl/bcm/pinctrl-ns2-mux.c @@ -853,7 +853,7 @@ static int ns2_pin_config_get(struct pinctrl_dev *pctldev, unsigned int pin, switch (param) { case PIN_CONFIG_BIAS_DISABLE: ns2_pin_get_pull(pctldev, pin, &pull_up, &pull_down); - if ((pull_up == false) && (pull_down == false)) + if (!pull_up && !pull_down) return 0; else return -EINVAL; |