Skip to content
Snippets Groups Projects
Commit f5ad594e authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Lee Jones
Browse files

leds: gpio: Utilise PTR_ERR_OR_ZERO()


Avoid a boilerplate code by using PTR_ERR_OR_ZERO() in create_gpio_led().

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231016161005.1471768-2-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent e80fc4bf
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment