1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/amd/pds_core
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
..
adminq.c pds_core: publish events to the clients 2023-04-21 08:29:13 +01:00
auxbus.c VFIO updates for v6.6-rc1 2023-08-30 20:36:01 -07:00
core.c amd/pds_core: core: No need for Null pointer check before kfree 2023-10-25 10:34:28 +01:00
core.h pds_core: add attempts to fix broken PCI 2023-09-18 09:28:22 +01:00
debugfs.c pds_core: set up the VIF definitions and defaults 2023-04-21 08:29:13 +01:00
dev.c pds_core: check health in devcmd wait 2023-09-18 09:28:22 +01:00
devlink.c pds_core: add an error code check in pdsc_dl_info_get 2023-10-20 17:39:32 -07:00
fw.c pds_core: add FW update feature to devlink 2023-04-21 08:29:13 +01:00
main.c pds_core: add attempts to fix broken PCI 2023-09-18 09:28:22 +01:00
Makefile pds_core: remove CONFIG_DEBUG_FS from makefile 2023-05-03 09:15:50 +01:00