Skip to content
Commit c6a8625f authored by YueHaibing's avatar YueHaibing Committed by Wei Liu
Browse files

hv_utils: Fix passing zero to 'PTR_ERR' warning



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: default avatarYueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20210514070116.16800-1-yuehaibing@huawei.com
[ wei: change %ld to %d ]
Signed-off-by: default avatarWei Liu <wei.liu@kernel.org>
parent bf5fd8ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment