Skip to content

Commit 605ba25

Browse files
raagjadavandy-shev
authored andcommitted
pinctrl: baytrail: invert if condition
Invert if condition and get rid of redundant else. Signed-off-by: Raag Jadav <raag.jadav@intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Link: https://lore.kernel.org/r/20230616203356.27343-4-raag.jadav@intel.com Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
1 parent 9d49882 commit 605ba25

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/pinctrl/intel/pinctrl-baytrail.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -753,9 +753,7 @@ static void byt_gpio_clear_triggering(struct intel_pinctrl *vg, unsigned int off
753753
value = readl(reg);
754754

755755
/* Do not clear direct-irq enabled IRQs (from gpio_disable_free) */
756-
if (value & BYT_DIRECT_IRQ_EN)
757-
/* nothing to do */ ;
758-
else
756+
if (!(value & BYT_DIRECT_IRQ_EN))
759757
value &= ~(BYT_TRIG_POS | BYT_TRIG_NEG | BYT_TRIG_LVL);
760758

761759
writel(value, reg);

0 commit comments

Comments
 (0)