Tag: c7360b343ab1f1442e0731eb9e31e2a89fa6f97c

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