These were produced by using coccinelle script. $ ./devtools/cocci.sh ./devtools/cocci/nullfree.cocci
Stephen Hemminger (4): mldev: remove unnecessary null free checks ml/cnkx: remove unnecessary null checks graph: remove unnicessary null checks examples/fips_validation: remove unneeded null checks app/test-mldev/test_device_ops.c | 6 ++---- app/test-mldev/test_inference_common.c | 24 ++++++++---------------- app/test-mldev/test_model_ops.c | 6 ++---- drivers/ml/cnxk/cn10k_ml_dev.c | 9 +++------ drivers/ml/cnxk/cn10k_ml_ops.c | 12 ++++-------- examples/fips_validation/main.c | 6 ++---- lib/graph/graph_pcap.c | 3 +-- lib/mldev/rte_mldev.c | 3 +-- 8 files changed, 23 insertions(+), 46 deletions(-) -- 2.39.2