[PATCH v2 0/7] fix more unnecessary null checks
Stephen Hemminger
stephen at networkplumber.org
Sun Feb 20 01:51:33 CET 2022
Thomas suggested there are some other functions that could
use the nullfree cleanup; this covers the rest of the story.
v2 - fix spelling typo and add more functions
Stephen Hemminger (7):
cocci/nullfree: add more functions
acl: remove unnecessary null checks
lpm: remove unnecessary NULL checks
lib: document existing free functions
test: remove unecessary NULL checks before free
fips_validation: remove unnecessary NULL check
event/sw: remove unnecessary NULL check
app/test/test_acl.c | 12 ++--
app/test/test_cmdline_lib.c | 3 +-
app/test/test_cryptodev.c | 9 +--
app/test/test_cryptodev_asym.c | 30 +++------
app/test/test_cryptodev_blockcipher.c | 3 +-
app/test/test_func_reentrancy.c | 6 +-
app/test/test_hash.c | 3 +-
devtools/cocci/nullfree.cocci | 63 +++++++++++++++++--
drivers/event/sw/sw_evdev.c | 6 +-
examples/fips_validation/fips_dev_self_test.c | 3 +-
lib/acl/rte_acl.h | 1 +
lib/compressdev/rte_comp.h | 1 +
lib/cryptodev/rte_crypto.h | 1 +
lib/eal/include/rte_interrupts.h | 4 +-
lib/efd/rte_efd.h | 1 +
lib/eventdev/rte_event_ring.h | 1 +
lib/lpm/rte_lpm.h | 1 +
lib/lpm/rte_lpm6.h | 1 +
lib/member/rte_member.h | 1 +
lib/rib/rte_rib.h | 1 +
lib/rib/rte_rib6.h | 1 +
lib/stack/rte_stack.h | 1 +
lib/table/rte_swx_table_wm.c | 3 +-
lib/table/rte_table_acl.c | 15 ++---
lib/telemetry/rte_telemetry.h | 2 +-
25 files changed, 103 insertions(+), 70 deletions(-)
--
2.34.1
More information about the dev
mailing list