mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 17:57:38 -04:00
pinctrl: cy8c95x0: Initialise boolean variable with boolean values
The 'ret' variable in cy8c95x0_irq_handler() is defined as bool, but is intialised with integers. Avoid implicit castings and initialise boolean variable with boolean values. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/20250205095243.512292-7-andriy.shevchenko@linux.intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
committed by
Linus Walleij
parent
c0fc403983
commit
682d385aca
@@ -1076,7 +1076,7 @@ static irqreturn_t cy8c95x0_irq_handler(int irq, void *devid)
|
||||
if (!ret)
|
||||
return IRQ_RETVAL(0);
|
||||
|
||||
ret = 0;
|
||||
ret = false;
|
||||
for_each_set_bit(level, pending, MAX_LINE) {
|
||||
/* Already accounted for 4bit gap in GPort2 */
|
||||
nested_irq = irq_find_mapping(gc->irq.domain, level);
|
||||
@@ -1095,7 +1095,7 @@ static irqreturn_t cy8c95x0_irq_handler(int irq, void *devid)
|
||||
else
|
||||
handle_nested_irq(nested_irq);
|
||||
|
||||
ret = 1;
|
||||
ret = true;
|
||||
}
|
||||
|
||||
return IRQ_RETVAL(ret);
|
||||
|
||||
Reference in New Issue
Block a user