lkml.org 
[lkml]   [2022]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] spi: microchip-core: fix passing zero to PTR_ERR warning
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?
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2022-06-15 13:42    [W:0.044 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site