[lvc-project] [PATCH] net/mlx4_en: Remove the redundant NULL check for the 'my_ets' object
Paolo Abeni
pabeni at redhat.com
Tue Apr 1 13:39:30 MSK 2025
On 4/1/25 8:15 AM, Ваторопин Андрей wrote:
> From: Andrey Vatoropin <a.vatoropin at crpt.ru>
>
> 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 at crpt.ru>
## Form letter - net-next-closed
Linus already pulled net-next material v6.15 and therefore net-next is
closed
for new drivers, features, code refactoring and optimizations. We are
currently
accepting bug fixes only.
Please repost when net-next reopens after Apr 7th.
RFC patches sent for review only are obviously welcome at any time.
See:
https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle
More information about the lvc-project
mailing list