[PATCH net-next v2 3/3] net: microchip: sparx5: Update return value check for vcap_get_rule()

Leon Romanovsky leon at kernel.org
Fri Aug 18 11:56:33 PDT 2023


On Fri, Aug 18, 2023 at 01:05:05PM +0800, Ruan Jinjie wrote:
> As Simon Horman suggests, update vcap_get_rule() to always
> return an ERR_PTR() and update the error detection conditions to
> use IS_ERR(), so use IS_ERR() to check the return value.
> 
> Signed-off-by: Ruan Jinjie <ruanjinjie at huawei.com>
> Suggested-by: Simon Horman <horms at kernel.org>
> ---
>  drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Thanks,
Reviewed-by: Leon Romanovsky <leonro at nvidia.com>



More information about the linux-arm-kernel mailing list