Recent commits to kernel/git/torvalds/linux.git have made the
functions able to tolerate NULL arguments:
kmem_cache_destroy (commit 3942d29918522)
mempool_destroy (commit 4e3ca3e033d1)
dma_pool_destroy (commit 44d7175da6ea)
How do you think about to extend an other SmPL script?
scripts/coccinelle/free: Delete NULL test before freeing functions
If these changes are OK, I will address the remainder later.
Would anybody like to reuse my general SmPL approach for similar source