Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: kempld: Use PTR_ERR_OR_ZERO() to simplify code

Use the standard error pointer macro to shorten the code and simplify.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Link: https://lore.kernel.org/r/20250812093104.103193-1-zhao.xichao@vivo.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Xichao Zhao and committed by
Lee Jones
ec9b6f05 58091331

+1 -3
+1 -3
drivers/mfd/kempld-core.c
··· 141 141 }; 142 142 143 143 kempld_pdev = platform_device_register_full(&pdevinfo); 144 - if (IS_ERR(kempld_pdev)) 145 - return PTR_ERR(kempld_pdev); 146 144 147 - return 0; 145 + return PTR_ERR_OR_ZERO(kempld_pdev); 148 146 } 149 147 150 148 /**