Re: [dm-devel] [PATCH 12/39] dm: drop null test before destroy functions

2015-09-14 Thread walter harms
Am 14.09.2015 15:46, schrieb Mikulas Patocka: > > On Sun, 13 Sep 2015, Julia Lawall wrote: > >> > Remove unneeded NULL test. >> > >> > The semantic patch that makes this change is as follows: >> > (http://coccinelle.lip6.fr/) >> > >> > // >> > @@ expression x; @@ >> > -if (x != NULL) >> >

Re: [dm-devel] [PATCH 12/39] dm: drop null test before destroy functions

2015-09-14 Thread Mikulas Patocka
On Sun, 13 Sep 2015, Julia Lawall wrote: > 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); > // > > Signed-