diff options
| author | Bragatheswaran Manickavel <[email protected]> | 2023-10-24 18:20:51 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-10-25 09:34:28 +0000 |
| commit | d0110443cf4a15267322f84210007943f5b01ae0 (patch) | |
| tree | f8e8219320f4f80c9d42827bae44058acf444490 /tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c | |
| parent | Merge branch 'mv88e6xxx-dsa-bindings' (diff) | |
| download | kernel-d0110443cf4a15267322f84210007943f5b01ae0.tar.gz kernel-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 <[email protected]>
Reviewed-by: Shannon Nelson <[email protected]>
Reviewed-by: Wojciech Drewek <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions
