Skip to content
Commit 68e81110 authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Saeed Mahameed
Browse files

net/mlx5: Use PTR_ERR_OR_ZERO() to simplify code



Return PTR_ERR_OR_ZERO() instead of return 0 or PTR_ERR() to
simplify code.

Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 58cd3477
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment