diff options
author | Lee Jones <lee.jones@linaro.org> | 2019-05-13 07:38:04 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-05-13 08:28:26 +0100 |
commit | d17ed797b8fd5c8765cd959ac44aaa2f090f5a89 (patch) | |
tree | 24ef5826b43a5b0ade0c79a069183ad345f11f21 /drivers/pinctrl | |
parent | 28a853860f719a89774a28596e1d1fdf1cd4a611 (diff) | |
download | blackbird-op-linux-d17ed797b8fd5c8765cd959ac44aaa2f090f5a89.tar.gz blackbird-op-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')
-rw-r--r-- | drivers/pinctrl/pinctrl-stmfx.c | 2 |
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) { |