]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: CT: Return err_ptr from internal functions
authorSaeed Mahameed <saeedm@mellanox.com>
Mon, 4 May 2020 22:52:14 +0000 (15:52 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 10 Jul 2020 02:51:16 +0000 (19:51 -0700)
commit8b0133a0727a4d36bb3e4c17117805c0bad9beaf
treec001855f77a0c99c82ff012ba73a9aa729a84e19
parent71c7dbcbabac067e459d9e0f046a13c54e0bc40c
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: Saeed Mahameed <saeedm@mellanox.com>
Suggested-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c