For Exynos' pinmux UART implementation there was a possibility to run
for() statement with uninitialized bank, start and count values.
Those warnings appear when following toolchain is used (gcc-4.8.2-glibc-2.18-binutils-2.24):
warning: 'count' may be used uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
start = 4;
count = 2;
break;
+ default:
+ error("UART device %d not implemented\n", peripheral);
+ return;
}
for (i = start; i < start + count; i++) {
s5p_gpio_set_pull(bank, i, GPIO_PULL_NONE);
start = 4;
count = 2;
break;
+ default:
+ error("UART device %d not implemented\n", peripheral);
+ return;
}
for (i = start; i < start + count; i++) {
start = 4;
count = 2;
break;
+ default:
+ error("UART device %d not implemented\n", peripheral);
+ return;
}
for (i = start; i < start + count; i++) {
s5p_gpio_set_pull(bank, i, GPIO_PULL_NONE);