diff options
author | Michal Simek <michal.simek@xilinx.com> | 2017-11-10 13:28:07 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2017-11-29 08:02:39 +0100 |
commit | 30829447a4efb8debdbf0b1da237254f84847eca (patch) | |
tree | 26f9be2f8e900fdc53e72e87f0d6e1f037c67dd8 /arch/arm/mach-zynq | |
parent | 460b05d96db50ec0578fb7bc3598e316df0ff3de (diff) | |
download | u-boot-30829447a4efb8debdbf0b1da237254f84847eca.zip u-boot-30829447a4efb8debdbf0b1da237254f84847eca.tar.gz u-boot-30829447a4efb8debdbf0b1da237254f84847eca.tar.bz2 |
arm: zynq: Use unsigned type with comparison with ARRAY_SIZE
Sparse is return warning about this:
arch/arm/mach-zynq/slcr.c: In function 'zynq_slcr_get_mio_pin_status':
arch/arm/mach-zynq/slcr.c:185:16: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare]
for (i = 0; i < ARRAY_SIZE(mio_periphs); i++) {
^
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynq')
-rw-r--r-- | arch/arm/mach-zynq/slcr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-zynq/slcr.c b/arch/arm/mach-zynq/slcr.c index 2a207ae..ba453a7 100644 --- a/arch/arm/mach-zynq/slcr.c +++ b/arch/arm/mach-zynq/slcr.c @@ -179,8 +179,9 @@ u32 zynq_slcr_get_idcode(void) int zynq_slcr_get_mio_pin_status(const char *periph) { const struct zynq_slcr_mio_get_status *mio_ptr; - int val, i, j; + int val, j; int mio = 0; + u32 i; for (i = 0; i < ARRAY_SIZE(mio_periphs); i++) { if (strcmp(periph, mio_periphs[i].peri_name) == 0) { |