Thread (12 messages) 12 messages, 5 authors, 2015-09-15

Re: [PATCH 34/39] dccp: drop null test before destroy functions

From: David Miller <davem@davemloft.net>
Date: 2015-09-15 23:50:18
Also in: kernel-janitors, lkml

From: Julia Lawall <redacted>
Date: Sun, 13 Sep 2015 14:15:27 +0200
Remove unneeded NULL test.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
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;
-}
// </smpl>

Signed-off-by: Julia Lawall <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help