Category: Linux

whci: 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: Greg Kroah-Hartman — drivers/usb/host/whci/init.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   diff –git a/drivers/usb/host/whci/init.c b/drivers/usb/host/whci/init.c index d3e13b6..e363723 …

Continue reading

md: 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: NeilBrown — drivers/md/multipath.c | 3 +– drivers/md/raid1.c | 6 ++—- drivers/md/raid10.c | 9 +++—— drivers/md/raid5.c | 3 +– 4 files changed, …

Continue reading

usb: gadget: 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: Felipe Balbi — drivers/usb/gadget/udc/bdc/bdc_core.c | 3 +– drivers/usb/gadget/udc/gr_udc.c | 3 +– drivers/usb/gadget/udc/mv_u3d_core.c | 3 +– drivers/usb/gadget/udc/mv_udc_core.c | 3 +– 4 files …

Continue reading

SUNRPC: 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: Trond Myklebust — net/sunrpc/sched.c | 12 ++++——– 1 file changed, 4 insertions(+), 8 deletions(-)   diff –git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index b140c09..425ca2f …

Continue reading

staging: lustre: 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: Greg Kroah-Hartman — drivers/staging/lustre/lustre/llite/super25.c | 16 ++++———– …

Continue reading

dm: drop NULL test before kmem_cache_destroy() and mempool_destroy()

Author: Julia Lawall <Julia.Lawall@lip6.fr> Remove DM’s unneeded NULL tests before calling these destroy functions, now that they check for NULL, thanks to these v4.3 commits: 3942d2991 (“mm/slab_common: allow NULL cache pointer in kmem_cache_destroy()”) 4e3ca3e03 (“mm/mempool: allow NULL `pool’ pointer in mempool_destroy()”) The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression …

Continue reading

hfi1: 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 Cc: Mike Marciniszyn Signed-off-by: Greg Kroah-Hartman — drivers/staging/rdma/hfi1/user_sdma.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   diff –git a/drivers/staging/rdma/hfi1/user_sdma.c …

Continue reading

atm: he: 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: David S. Miller — drivers/atm/he.c | 7 ++—– 1 file changed, 2 insertions(+), 5 deletions(-)   diff –git a/drivers/atm/he.c b/drivers/atm/he.c index …

Continue reading

pktcdvd: 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: Jiri Kosina — drivers/block/pktcdvd.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   diff –git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 4c20c22..49375a4 …

Continue reading

xhci: 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: Greg Kroah-Hartman — drivers/usb/host/xhci-mem.c | 12 ++++——– 1 file changed, 4 insertions(+), 8 deletions(-)   diff –git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index bc54090..c48cbe7 …

Continue reading

BtrLinux
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.