linux/drivers/net/ethernet/amd
Bragatheswaran Manickavel d0110443cf amd/pds_core: core: No need for Null pointer check before kfree
kfree()/vfree() internally perform NULL check on the
pointer handed to it and take no action if it indeed is
NULL. Hence there is no need for a pre-check of the memory
pointer before handing it to kfree()/vfree().

Issue reported by ifnullfree.cocci Coccinelle semantic
patch script.

Signed-off-by: Bragatheswaran Manickavel <bragathemanick0908@gmail.com>
Reviewed-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-10-25 10:34:28 +01:00
..
pds_core amd/pds_core: core: No need for Null pointer check before kfree 2023-10-25 10:34:28 +01:00
xgbe
7990.c
7990.h
Kconfig
Makefile
a2065.c
a2065.h
amd8111e.c
amd8111e.h
ariadne.c
ariadne.h
atarilance.c
au1000_eth.c
au1000_eth.h
declance.c
hplance.c
hplance.h
lance.c
mvme147.c
nmclan_cs.c
pcnet32.c
sun3lance.c
sunlance.c