Re: [PATCH] net/mlx5: Use PTR_ERR_OR_ZERO rather than its implementation

2019-09-04 Thread Saeed Mahameed
On Tue, 2019-09-03 at 20:08 +, Saeed Mahameed wrote: > On Tue, 2019-09-03 at 14:56 +0800, zhong jiang wrote: > > PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR. It is better > > to use it directly. hence just replace it. > > > > Signed-off-by: zhong jiang > > --- > > drivers/net/ethernet

Re: [PATCH] net/mlx5: Use PTR_ERR_OR_ZERO rather than its implementation

2019-09-03 Thread Saeed Mahameed
On Tue, 2019-09-03 at 14:56 +0800, zhong jiang wrote: > PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR. It is better > to use it directly. hence just replace it. > > Signed-off-by: zhong jiang > --- > drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 5 + > 1 file changed, 1 insertion(+)

[PATCH] net/mlx5: Use PTR_ERR_OR_ZERO rather than its implementation

2019-09-02 Thread zhong jiang
PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR. It is better to use it directly. hence just replace it. Signed-off-by: zhong jiang --- drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/co