Tag: 20471ed4d403a5f4de6aa0c10cd1e446f7f2b3c7

dccp: 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); @@ 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/dccp/ackvec.c | 12 …

Continue reading