[PATCH 0/3] more unnecessary null checks
Stephen Hemminger
stephen at networkplumber.org
Sun Feb 20 00:43:19 CET 2022
Thomas suggested there are some other functions that could
use the nullfree cleanup. And ACL and LPM are both candidates.
Stephen Hemminger (3):
cocci/nullfree: add more functions
acl: remove unncessary null checks in calls to rte_acl_free()
lpm: remove unnecessary NULL checks
app/test/test_acl.c | 12 ++++--------
app/test/test_func_reentrancy.c | 3 +--
devtools/cocci/nullfree.cocci | 9 +++++++++
lib/acl/rte_acl.h | 1 +
lib/lpm/rte_lpm.h | 1 +
lib/lpm/rte_lpm6.h | 1 +
lib/table/rte_swx_table_wm.c | 3 +--
lib/table/rte_table_acl.c | 15 +++++----------
8 files changed, 23 insertions(+), 22 deletions(-)
--
2.34.1
More information about the dev
mailing list