OpenCloudOS-Kernel/drivers/soc/fsl/qe
Maxim Kochetkov c1e64c0aec soc: fsl: qe: fix static checker warning
The patch be7ecbd240b2: "soc: fsl: qe: convert QE interrupt
controller to platform_device" from Aug 3, 2021, leads to the
following static checker warning:

	drivers/soc/fsl/qe/qe_ic.c:438 qe_ic_init()
	warn: unsigned 'qe_ic->virq_low' is never less than zero.

In old variant irq_of_parse_and_map() returns zero if failed so
unsigned int for virq_high/virq_low was ok.
In new variant platform_get_irq() returns negative error codes
if failed so we need to use int for virq_high/virq_low.

Also simplify high_handler checking and remove the curly braces
to make checkpatch happy.

Fixes: be7ecbd240 ("soc: fsl: qe: convert QE interrupt controller to platform_device")
Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
2021-08-13 16:56:10 -05:00
..
Kconfig soc: fsl: qe: remove PPC32 dependency from CONFIG_QUICC_ENGINE 2019-12-09 13:57:45 -06:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
gpio.c soc: fsl: qe: replace qe_io{read,write}* wrappers by generic io{read,write}* 2021-04-06 15:39:39 -05:00
qe.c soc: fsl: qe: replace qe_io{read,write}* wrappers by generic io{read,write}* 2021-04-06 15:39:39 -05:00
qe_common.c soc: fsl: qe: Use DEFINE_SPINLOCK() for spinlock 2021-04-06 15:24:43 -05:00
qe_ic.c soc: fsl: qe: fix static checker warning 2021-08-13 16:56:10 -05:00
qe_io.c soc: fsl: qe: replace qe_io{read,write}* wrappers by generic io{read,write}* 2021-04-06 15:39:39 -05:00
qe_tdm.c soc: fsl: qe: avoid ppc-specific io accessors 2019-12-09 13:54:29 -06:00
ucc.c soc: fsl: qe: Remove unnessesary check in ucc_set_tdm_rxtx_clk 2020-09-22 18:25:29 -05:00
ucc_fast.c soc: fsl: qe: replace qe_io{read,write}* wrappers by generic io{read,write}* 2021-04-06 15:39:39 -05:00
ucc_slow.c soc: fsl: qe: replace qe_io{read,write}* wrappers by generic io{read,write}* 2021-04-06 15:39:39 -05:00
usb.c soc: fsl: qe: avoid ppc-specific io accessors 2019-12-09 13:54:29 -06:00