gpio: intel_gpio: Initialise or0 and or1
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Fri, 25 Jul 2025 12:04:26 +0000 (13:04 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 28 Oct 2025 16:32:59 +0000 (10:32 -0600)
commite8fd262fb3e2c2516610fac6389764e0dbfd98d7
tree0248db2312c15a9c8506b8a6655dec2dacdb85c2
parent23987e10905146def3ab61e55ec912c6e742efdc
gpio: intel_gpio: Initialise or0 and or1

In intel_gpio_set_flags the two variables or0 and or1 may be used
uninitialised. Correct this by setting initial values in the
declaration.
Also there is no need to use '|=' when the initial value is 0 and there
is only one assignment performed to each variable so just use '='
instead.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/gpio/intel_gpio.c