diff options
| author | kernel test robot <[email protected]> | 2021-03-19 07:44:41 +0800 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-03-29 13:22:17 +1100 |
| commit | bbbe563f8490958861777d98871e16960163ea1b (patch) | |
| tree | ab8d863aa8e6e59b335c7109fb15eebc5e80327b /tools/perf/scripts/python | |
| parent | a2308836880bf1501ff9373c611dc2970247d42b (diff) | |
powerpc/iommu/debug: fix ifnullfree.cocci warnings
arch/powerpc/kernel/iommu.c:76:2-16: WARNING: NULL check before some freeing functions is not needed.
NULL check before some freeing functions is not needed.
Based on checkpatch warning
"kfree(NULL) is safe this check is probably not required"
and kfreeaddr.cocci by Julia Lawall.
Generated by: scripts/coccinelle/free/ifnullfree.cocci
Fixes: 691602aab9c3 ("powerpc/iommu/debug: Add debugfs entries for IOMMU tables")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: kernel test robot <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/20210318234441.GA63469@f8e20a472e81
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions