summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/mec1322/gpio.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/chip/mec1322/gpio.c b/chip/mec1322/gpio.c
index 73b584a943..1be969e60c 100644
--- a/chip/mec1322/gpio.c
+++ b/chip/mec1322/gpio.c
@@ -54,10 +54,7 @@ test_mockable int gpio_get_level(enum gpio_signal signal)
i = 31 - __builtin_clz(mask);
val = MEC1322_GPIO_CTL(gpio_list[signal].port, i);
- if (val & (1 << 9)) /* Output */
- return (val & (1 << 16)) ? 1 : 0;
- else
- return (val & (1 << 24)) ? 1 : 0;
+ return (val & (1 << 24)) ? 1 : 0;
}
void gpio_set_level(enum gpio_signal signal, int value)