numam-dpdk/devtools/cocci
Stephen Hemminger 27b360f1b5 devtools: add script to fix unnecessary null checks
This script is based on the idea of the nullfree script
in the Linux kernel. It finds cases where a check for null
pointer is done, but is unnecessary because the function
already handles NULL pointer.

Basic example:
       if (x->buf)
           rte_free(x->buf);
can be reduced to:
       rte_free(x->buf);

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
2022-02-12 12:06:31 +01:00
..
mtod-offset.cocci fix typos using codespell utility 2017-06-14 23:54:13 +02:00
namespace_ethdev.cocci devtools/cocci: add script for ethdev namespace change 2021-11-26 18:01:11 +01:00
nullfree.cocci devtools: add script to fix unnecessary null checks 2022-02-12 12:06:31 +01:00
prefix_mbuf_offload_flags.cocci devtools: add cocci script to rename mbuf offload flags 2021-10-24 13:37:02 +02:00
strlcpy-with-header.cocci devtools/cocci: create safer version of strlcpy script 2019-04-04 22:45:33 +02:00
strlcpy.cocci devtools/cocci: make strlcpy replacement smarter 2019-04-04 22:44:02 +02:00