diff options
author | Ruan Jinjie <ruanjinjie@huawei.com> | 2023-08-02 12:00:26 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-08-03 15:29:37 +0200 |
commit | 3986892646de95b916f6bf1c22b35dd2a3b3715a (patch) | |
tree | 31a5e869224c25617143b0adec4e397b425a5522 /drivers/net/ethernet/intel/ice/ice_main.c | |
parent | 3cb6a338c3d4f5f60fed0a26a203ed2c208d189d (diff) |
net/mlx4: Remove many unnecessary NULL values
The NULL initialization of the pointers assigned by kzalloc() first is
not necessary, because if the kzalloc() failed, the pointers will be
assigned NULL, otherwise it works as usual. so remove it.
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20230802040026.2588675-1-ruanjinjie@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions