Commit d17ed797 authored by Lee Jones's avatar Lee Jones

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: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 28a85386
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment