chip/nrf51/gpio.c: Actually check the flag (instead of == 0)
Found by Coverity Scan #146623 BUG=none BRANCH=none TEST=none Change-Id: I04ca143f794596c7be00f69ee297b33759125ae2 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1801204 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Patrick Georgi <pgeorgi@chromium.org> Commit-Queue: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
parent
89267691e5
commit
77424e473f
|
@ -257,7 +257,7 @@ int gpio_disable_interrupt(enum gpio_signal signal)
|
|||
return EC_ERROR_INVAL;
|
||||
|
||||
/* If it's not shared, use INT0-INT3, otherwise use PORT. */
|
||||
if (!(g->flags && GPIO_INT_SHARED)) {
|
||||
if (!(g->flags & GPIO_INT_SHARED)) {
|
||||
for (i = 0; i < NRF51_GPIOTE_IN_COUNT; i++) {
|
||||
/* Remove matching handler. */
|
||||
if (gpio_ints[i] == g) {
|
||||
|
|
Loading…
Reference in New Issue