]> git.ipfire.org Git - thirdparty/linux.git/commit
net/mlx4_en: Remove the redundant NULL check for the 'my_ets' object
authorAndrey Vatoropin <a.vatoropin@crpt.ru>
Mon, 16 Jun 2025 04:50:44 +0000 (04:50 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 19 Jun 2025 09:53:07 +0000 (11:53 +0200)
commitf6be1f290c65cf99c703c4e2e4c951aee4af6de0
tree91807bf7508d866f6357df4bcc2ead3685a3ce67
parent757639ac608e026995635740fbbb45873c4f4a18
net/mlx4_en: Remove the redundant NULL check for the 'my_ets' object

Static analysis shows that pointer "my_ets" cannot be NULL because it
points to the object "struct ieee_ets".

Remove the extra NULL check. It is meaningless and harms the readability
of the code.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Andrey Vatoropin <a.vatoropin@crpt.ru>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250616045034.26000-1-a.vatoropin@crpt.ru
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c