On Wed, Jun 15, 2022 at 12:30:22PM +0100, Conor Dooley wrote: > - ret = PTR_ERR(spi->clk); > + ret = !spi->clk ? -ENXIO : PTR_ERR(spi->clk); I think you're looking for PTR_ERR_OR_ZERO() here?
Attachment:
signature.asc
Description: PGP signature
On Wed, Jun 15, 2022 at 12:30:22PM +0100, Conor Dooley wrote: > - ret = PTR_ERR(spi->clk); > + ret = !spi->clk ? -ENXIO : PTR_ERR(spi->clk); I think you're looking for PTR_ERR_OR_ZERO() here?
Attachment:
signature.asc
Description: PGP signature