Re: [PATCH -next] net/mlx5: Use PTR_ERR_OR_ZERO() to simplify the code

2016-07-20 Thread David Miller
From: Wei Yongjun Date: Tue, 19 Jul 2016 11:35:46 + > From: Wei Yongjun > > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR. > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > Signed-off-by: Wei Yongjun

Re: [PATCH -next] net/mlx5: Use PTR_ERR_OR_ZERO() to simplify the code

2016-07-19 Thread Leon Romanovsky
On Tue, Jul 19, 2016 at 11:35:46AM +, Wei Yongjun wrote: > From: Wei Yongjun > > Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR. > > Generated by: scripts/coccinelle/api/ptr_ret.cocci > > Signed-off-by: Wei Yongjun

[PATCH -next] net/mlx5: Use PTR_ERR_OR_ZERO() to simplify the code

2016-07-19 Thread Wei Yongjun
From: Wei Yongjun Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR. Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Wei Yongjun --- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 10 ++ 1