]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ARM: s3c: irq-s3c24xx: Fix return value check for s3c24xx_init_intc()
authorJackie Liu <liuyun01@kylinos.cn>
Wed, 1 Sep 2021 12:35:57 +0000 (20:35 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:28 +0000 (09:48 +0100)
commitb24b4e330627ba48beb4f87a90cdfab131083dd7
tree4ea4b2cda0904f29daa029e9f0061b406f2061f7
parentb836d95691d36c0bff6ffda3f93fe6743915164f
ARM: s3c: irq-s3c24xx: Fix return value check for s3c24xx_init_intc()

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit 2aa717473ce96c93ae43a5dc8c23cedc8ce7dd9f ]

The s3c24xx_init_intc() returns an error pointer upon failure, not NULL.
let's add an error pointer check in s3c24xx_handle_irq.

s3c_intc[0] is not NULL or ERR, we can simplify the code.

Fixes: 1f629b7a3ced ("ARM: S3C24XX: transform irq handling into a declarative form")
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Link: https://lore.kernel.org/r/20210901123557.1043953-1-liu.yun@linux.dev
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/arm/mach-s3c/irq-s3c24xx.c