Skip to content
Commit 2acc4551 authored by Saeed Mahameed's avatar Saeed Mahameed
Browse files

net/mlx5e: CT: Return err_ptr from internal functions



Instead of having to deal with converting between int and ERR_PTR for
return values in mlx5_tc_ct_flow_offload(), make the internal helper
functions return a ptr to mlx5_flow_handle instead of passing it as
output param, this will also avoid gcc confusion and false alarms,
thus we remove the redundant ERR_PTR rule initialization.

Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Suggested-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Reviewed-by: default avatarRoi Dayan <roid@mellanox.com>
parent d12f4521
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment