Commit 1c66df86 authored by Simon Horman's avatar Simon Horman Committed by Jakub Kicinski
Browse files

net: txgbe: Remove unnecessary NULL check before free



Remove unnecessary NULL check before freeing using kvfree().
This function will ignore a NULL argument.

Flagged by Coccinelle:

  .../txgbe_hw.c:187:2-8: WARNING: NULL check before some freeing functions is not needed.

No functional change intended.
Compile tested only.

Signed-off-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240815-txgbe-kvfree-v1-1-5ecf8656f555@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 1f803c95
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment