pinmux: esp32: Unnecessary iteration in "for" loop

In this case: "pin == ARRAY_SIZE(pin_mux_off)" is invalid and it
isn't necessary to iterate.

Signed-off-by: Vitor Massaru Iha <vitor@massaru.org>
This commit is contained in:
Vitor Massaru Iha 2017-11-20 16:27:00 -02:00 committed by Anas Nashif
parent 9d99691e7b
commit bed7698ac0

View file

@ -160,7 +160,7 @@ static int pinmux_initialize(struct device *device)
{
u32_t pin;
for (pin = 0; pin <= ARRAY_SIZE(pin_mux_off); pin++) {
for (pin = 0; pin < ARRAY_SIZE(pin_mux_off); pin++) {
pinmux_set(NULL, pin, 0);
}