summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-stmfx.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2019-05-13 08:38:04 +0200
committerLee Jones <lee.jones@linaro.org>2019-05-13 09:28:26 +0200
commitd17ed797b8fd5c8765cd959ac44aaa2f090f5a89 (patch)
tree24ef5826b43a5b0ade0c79a069183ad345f11f21 /drivers/pinctrl/pinctrl-stmfx.c
parentpinctrl: stmfx: Fix 'warn: unsigned <VAR> is never less than zero' (diff)
downloadlinux-d17ed797b8fd5c8765cd959ac44aaa2f090f5a89.tar.xz
linux-d17ed797b8fd5c8765cd959ac44aaa2f090f5a89.zip
pinctrl: stmfx: Fix 'warn: bitwise AND condition is false here'
drivers/pinctrl/pinctrl-stmfx.c:441 stmfx_pinctrl_irq_set_type() warn: bitwise AND condition is false here Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-stmfx.c')
-rw-r--r--drivers/pinctrl/pinctrl-stmfx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c
index 074c8fa3e75c..eba872ce4a7c 100644
--- a/drivers/pinctrl/pinctrl-stmfx.c
+++ b/drivers/pinctrl/pinctrl-stmfx.c
@@ -437,7 +437,7 @@ static int stmfx_pinctrl_irq_set_type(struct irq_data *data, unsigned int type)
u32 reg = get_reg(data->hwirq);
u32 mask = get_mask(data->hwirq);
- if (type & IRQ_TYPE_NONE)
+ if (type == IRQ_TYPE_NONE)
return -EINVAL;
if (type & IRQ_TYPE_EDGE_BOTH) {