net/mlx5: use anonymous Direct Verbs allocator argument
authorMichael Baum <michaelba@mellanox.com>
Wed, 24 Jun 2020 13:46:41 +0000 (13:46 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:30 +0000 (14:52 +0200)
commit36dabcea78f0888ba23457bd9c02394bacc2bd1a
tree152a890bca6f9c60ede58544def5bf191e33f752
parentece45f693a1c50e1f6d0619b4bb859955037ab0b
net/mlx5: use anonymous Direct Verbs allocator argument

The mlx5_dev_spawn function defines an struct mlx5dv_ctx_allocators type
variable several hundred rows after it starts, with the only use it
being passed as a parameter to the mlx5_glue->dv_set_context_attr
function.
However, according to DPDK Coding Style Guidelines, variables should be
declared at the start of a block of code rather than in the middle.
Therefore, to improve the Coding Style, the variable is passed directly
to the function without declaring it before.

Signed-off-by: Michael Baum <michaelba@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/linux/mlx5_os.c