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
Applied.
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
Thanks,
Acked-by: Leon Romanovsky
signature.asc
Description:
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 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/drive