net/mlx4: use anonymous Direct Verbs allocator argument
authorMichael Baum <michaelba@mellanox.com>
Wed, 24 Jun 2020 13:29:55 +0000 (13:29 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:30 +0000 (14:52 +0200)
commit50e249437811c9150e3ade4a4ee08a7d8d3ee5ec
tree341a6f1c38d1ac18317daea3dc095e6f69e17076
parenta294e58c80a8c012d064247b1b242604ba6042a9
net/mlx4: use anonymous Direct Verbs allocator argument

The mlx4_pci_probe function defines an struct mlx4dv_ctx_allocators type
variable several hundred rows after it starts, with the only use it
being passed as a parameter to the mlx4_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/mlx4/mlx4.c