Tag: adf78edac09f9640cd9676571586c4be46fb527c

net: core: drop null test before destroy functions

Author: Julia Lawall <julia.lawall@lip6.fr> Remove unneeded NULL test. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; @@ -if (x != NULL) { \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x); x = NULL; -} // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller — net/core/sock.c | 12 ++++——– 1 file changed, 4 insertions(+), 8 deletions(-)   …

Continue reading