net/mlx5: Avoid unnecessary operation
authorEli Cohen <elic@nvidia.com>
Mon, 8 Feb 2021 09:07:53 +0000 (11:07 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 11 Mar 2021 22:35:15 +0000 (14:35 -0800)
commit61e9508f1e5e5f7a32f51904cbde66f8fdcb452e
treeb282611959a28dad4db7363cbdcf14724e993207
parent03e219c4cf842d65c9e6f3d72f9c02d5cb3f578f
net/mlx5: Avoid unnecessary operation

fs_get_obj retrieves the container of fs_parent_node just to pass the
same value as &fs_ns->node. Just pass fs_parent_node to
init_root_tree_recursive() to get exactly the same effect.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c