Re: [PATCH net-next] openvswitch: Use IS_ERR instead of IS_ERR_OR_NULL

From: Jakub Kicinski
Date: Mon Nov 02 2020 - 20:36:24 EST


On Sat, 31 Oct 2020 14:01:53 +0800 YueHaibing wrote:
> Fix smatch warning:
>
> net/openvswitch/meter.c:427 ovs_meter_cmd_set() warn: passing zero to 'PTR_ERR'
>
> dp_meter_create() never returns NULL, use IS_ERR
> instead of IS_ERR_OR_NULL to fix this.
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>

Applied, thanks!