linux/arch/mips/lantiq
Shiji Yang 9c9a7ff988 MIPS: lantiq: falcon: sysctrl: fix request memory check logic
request_mem_region() will return NULL instead of error code
when the memory request fails. Therefore, we should check if
the return value is non-zero instead of less than zero. In
this way, this patch also fixes the build warnings:

arch/mips/lantiq/falcon/sysctrl.c:214:50: error: ordered comparison of pointer with integer zero [-Werror=extra]
  214 |                                 res_status.name) < 0) ||
      |                                                  ^
arch/mips/lantiq/falcon/sysctrl.c:216:47: error: ordered comparison of pointer with integer zero [-Werror=extra]
  216 |                                 res_ebu.name) < 0) ||
      |                                               ^
arch/mips/lantiq/falcon/sysctrl.c:219:50: error: ordered comparison of pointer with integer zero [-Werror=extra]
  219 |                                 res_sys[0].name) < 0) ||
      |                                                  ^
arch/mips/lantiq/falcon/sysctrl.c:222:50: error: ordered comparison of pointer with integer zero [-Werror=extra]
  222 |                                 res_sys[1].name) < 0) ||
      |                                                  ^
arch/mips/lantiq/falcon/sysctrl.c:225:50: error: ordered comparison of pointer with integer zero [-Werror=extra]
  225 |                                 res_sys[2].name) < 0))
      |

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2025-07-03 12:35:11 +02:00
..
falcon MIPS: lantiq: falcon: sysctrl: fix request memory check logic 2025-07-03 12:35:11 +02:00
xway MIPS: lantiq: xway: gptu: mark gptu_init() as static 2025-07-03 12:35:10 +02:00
clk.c
clk.h
early_printk.c
irq.c MIPS: lantiq: irq: fix misc missing-prototypes warnings 2025-07-02 13:37:38 +02:00
Kconfig
Makefile
Platform
prom.c MIPS: lantiq: register smp_ops on non-smp platforms 2024-01-26 10:36:21 +01:00
prom.h