lkml.org 
[lkml]   [2021]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -next] hv_utils: Fix passing zero to 'PTR_ERR' warning
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@huawei.com>

Applied to hyperv-next. Thanks.

\
 
 \ /
  Last update: 2021-05-15 17:51    [W:0.119 / U:2.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site