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

Re: [PATCH 25/39] net: core: drop null test before destroy functions

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

From: Julia Lawall <redacted>
Date: Sun, 13 Sep 2015 14:15:18 +0200
quoted hunk ↗ jump to hunk
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);
  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