leds: gpio: Utilise PTR_ERR_OR_ZERO()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 16 Oct 2023 16:10:01 +0000 (19:10 +0300)
committerLee Jones <lee@kernel.org>
Wed, 1 Nov 2023 11:29:20 +0000 (11:29 +0000)
commitf5ad594e389c57dfe19059ce868392809f9b1a71
treec64179a5f8c665390ec0be65aed13c7ad9395dd2
parente80fc4bfc820aa44c500cf4c61e08765f36d3c63
leds: gpio: Utilise PTR_ERR_OR_ZERO()

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

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231016161005.1471768-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/leds-gpio.c