Re: [PATCH v2] net/mlx5e: Use IS_ERR() to check and simplify code

2020-05-18 Thread Saeed Mahameed
On Sat, 2020-05-16 at 07:06 +0800, Tang Bin wrote: > Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to > simplify code, avoid redundant judgements. > > Signed-off-by: Zhang Shengju > Signed-off-by: Tang Bin > Reviewed-by: Leon Romanovsky > --- > Changes from v1 > - fix the commit mess

[PATCH v2] net/mlx5e: Use IS_ERR() to check and simplify code

2020-05-15 Thread Tang Bin
Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to simplify code, avoid redundant judgements. Signed-off-by: Zhang Shengju Signed-off-by: Tang Bin Reviewed-by: Leon Romanovsky --- Changes from v1 - fix the commit message for typo. --- drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.