Skip to content
Unverified Commit 8995673e authored by Markus Elfring's avatar Markus Elfring Committed by Mark Brown
Browse files

spi-gpio: Use PTR_ERR_OR_ZERO() in spi_gpio_request()



Simplify this function implementation by using a known function.

Generated by: scripts/coccinelle/api/ptr_ret.cocci

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/b2dd074a-1693-3aea-42b4-da1f5ec155c4@web.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d1c44c93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment