Re: [PATCH -next] hv_utils: Fix passing zero to 'PTR_ERR' warning

From: Wei Liu
Date: Sat May 15 2021 - 11:50:47 EST


On Fri, May 14, 2021 at 03:01:16PM +0800, YueHaibing wrote:
> Sparse warn this:
>
> drivers/hv/hv_util.c:753 hv_timesync_init() warn:
> passing zero to 'PTR_ERR'
>
> Use PTR_ERR_OR_ZERO instead of PTR_ERR to fix this.
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied to hyperv-next. Thanks.