net/mlx5: remove many unnecessary NULL values
authorRuan Jinjie <ruanjinjie@huawei.com>
Fri, 4 Aug 2023 01:43:44 +0000 (09:43 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 7 Aug 2023 17:53:52 +0000 (10:53 -0700)
commita0ae00e71e3e652c3bde8dcb61b4c1718618192e
treef68b1db5193475f0ce0662fa99bb4cf0c33d26ab
parentf14c1a14e63227a65faa68237687784a6dd2e922
net/mlx5: remove many unnecessary NULL values

There are many pointers assigned first, which need not to be
initialized, so remove the NULL assignments.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fpga/core.c
drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.c