Commit f6be1f29 authored by Andrey Vatoropin's avatar Andrey Vatoropin Committed by Paolo Abeni
Browse files

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: default avatarAndrey Vatoropin <a.vatoropin@crpt.ru>
Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
Reviewed-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250616045034.26000-1-a.vatoropin@crpt.ru


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 757639ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment