summaryrefslogtreecommitdiff
path: root/arch/arm/mach-spear
diff options
context:
space:
mode:
authorBragatheswaran Manickavel <bragathemanick0908@gmail.com>2023-10-24 23:50:51 +0530
committerDavid S. Miller <davem@davemloft.net>2023-10-25 10:34:28 +0100
commitd0110443cf4a15267322f84210007943f5b01ae0 (patch)
treef8e8219320f4f80c9d42827bae44058acf444490 /arch/arm/mach-spear
parent61450abfc98f9edc983b381164f559faa1c22ae6 (diff)
downloadlwn-d0110443cf4a15267322f84210007943f5b01ae0.tar.gz
lwn-d0110443cf4a15267322f84210007943f5b01ae0.zip
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>
Diffstat (limited to 'arch/arm/mach-spear')
0 files changed, 0 insertions, 0 deletions