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); // Signed-off-by: Julia Lawall Signed-off-by: Brian Norris — fs/jffs2/malloc.c | 27 +++++++++—————— 1 file changed, 9 insertions(+), 18 deletions(-) diff –git a/fs/jffs2/malloc.c b/fs/jffs2/malloc.c index b8fd651..ce11897 …
Catégorie : Linux
Sep 13 2015
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 …
Sep 13 2015
rbd: 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: Ilya Dryomov — drivers/block/rbd.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-) diff …
Sep 13 2015
drm: i915: 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); // Signed-off-by: Julia Lawall Signed-off-by: Daniel Vetter — drivers/gpu/drm/i915/i915_dma.c | 19 ++++++————- 1 file changed, 6 insertions(+), 13 deletions(-) diff –git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 817b05c..ae1ba47 …
Sep 13 2015
ecryptfs: 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); // Signed-off-by: Julia Lawall Signed-off-by: Tyler Hicks — fs/ecryptfs/main.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c index 1698132..6120044 …
Sep 13 2015
dmaengine: 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); // Signed-off-by: Julia Lawall Signed-off-by: Vinod Koul — drivers/dma/dmaengine.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-) diff –git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 3ff284c..45df9a4 …
Sep 13 2015
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(-) …
Sep 13 2015
UBI: 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); // Signed-off-by: Julia Lawall Signed-off-by: Richard Weinberger — drivers/mtd/ubi/attach.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-) diff –git a/drivers/mtd/ubi/attach.c b/drivers/mtd/ubi/attach.c index 68eea5b..c1aaf03 …
Sep 13 2015
nfsd: 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: J. Bruce Fields — fs/nfsd/nfscache.c | 6 ++—- 1 file changed, 2 insertions(+), 4 deletions(-) …
Sep 13 2015
ixgbe: 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); // Signed-off-by: Julia Lawall Tested-by: Darin Miller Signed-off-by: Jeff Kirsher — drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-) diff –git a/drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c …