OSDN Git Service

net/mlx5e: Use IS_ERR() to check and simplify code
authorTang Bin <tangbin@cmss.chinamobile.com>
Fri, 15 May 2020 23:06:33 +0000 (07:06 +0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 22 May 2020 23:46:07 +0000 (16:46 -0700)
commit2639324a8fb69e1db88ef985e7def18a6bc106d1
treedb955ea4b7872efc32ca3220e153760930ac442f
parent593532668f635d19d207510e0fbb5c2250f56b6f
net/mlx5e: Use IS_ERR() to check and simplify code

Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to
simplify code, avoid redundant judgements.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c