Commit bb2f43d4 authored by Andy Shevchenko's avatar Andy Shevchenko

pinctrl: intel: Get rid of redundant 'else' in intel_config_set_debounce()

In a code like
	if (...) {
		...
		goto label;
	} else {
		...
	}
the 'else' keyword is redundant. Get rid of it for better readability.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 86851bbc
...@@ -719,13 +719,13 @@ static int intel_config_set_debounce(struct intel_pinctrl *pctrl, ...@@ -719,13 +719,13 @@ static int intel_config_set_debounce(struct intel_pinctrl *pctrl,
if (v < 3 || v > 15) { if (v < 3 || v > 15) {
ret = -EINVAL; ret = -EINVAL;
goto exit_unlock; goto exit_unlock;
} else { }
/* Enable glitch filter and debouncer */ /* Enable glitch filter and debouncer */
value0 |= PADCFG0_PREGFRXSEL; value0 |= PADCFG0_PREGFRXSEL;
value2 |= v << PADCFG2_DEBOUNCE_SHIFT; value2 |= v << PADCFG2_DEBOUNCE_SHIFT;
value2 |= PADCFG2_DEBEN; value2 |= PADCFG2_DEBEN;
} }
}
writel(value0, padcfg0); writel(value0, padcfg0);
writel(value2, padcfg2); writel(value2, padcfg2);
......
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