]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: amlogic-spisg: Use IS_ERR() instead of IS_ERR_OR_NULL()
authorFelix Gu <ustc.gu@gmail.com>
Sun, 8 Mar 2026 06:59:50 +0000 (14:59 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 16 Mar 2026 01:15:59 +0000 (01:15 +0000)
commit8abf84f76a546c320c788cd7a8c5e3abea9b2b38
tree1499fa2426b4494aac60efe34f440c1e6c60a897
parent869d5b4b2a8012f6ef6058a1055cac6922c2cb55
spi: amlogic-spisg: Use IS_ERR() instead of IS_ERR_OR_NULL()

devm_clk_get_enabled() and devm_clk_hw_get_clk() return error pointers
on failure and never return NULL. So IS_ERR_OR_NULL() is unnecessary,
replace them with IS_ERR().

Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Link: https://patch.msgid.link/20260308-spisg-1-v1-1-4e209faf228d@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-amlogic-spisg.c