]> Git Repo - linux.git/commit
spi: at91-usart: Use PTR_ERR_OR_ZERO() to simplify code
authorJinjie Ruan <[email protected]>
Tue, 22 Aug 2023 12:46:42 +0000 (20:46 +0800)
committerMark Brown <[email protected]>
Tue, 22 Aug 2023 12:51:35 +0000 (13:51 +0100)
commit60ea3db33fbddf559e18567ca8897f6bb9f25290
tree0bcace77f21b6b1e0832c327c0e9320be3b69807
parent1c351c236ac58e7e0ac3b5e1fe50be532bc937c4
spi: at91-usart: Use PTR_ERR_OR_ZERO() to simplify code

Return PTR_ERR_OR_ZERO() instead of return 0 or PTR_ERR() to
simplify code.

Signed-off-by: Jinjie Ruan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
drivers/spi/spi-at91-usart.c
This page took 0.054305 seconds and 4 git commands to generate.