Commit 71741bd6 authored by Salil Kapur's avatar Salil Kapur Committed by Greg Kroah-Hartman
Browse files

USB: Removing NULL check for pool since dma_pool_destroy is safe



Removing NULL check for pool since dma_pool_destroy is safe

Signed-off-by: default avatarSalil Kapur <salilkapur93@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4e69817b
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -101,14 +101,10 @@ void hcd_buffer_destroy(struct usb_hcd *hcd)
		return;

	for (i = 0; i < HCD_BUFFER_POOLS; i++) {
		struct dma_pool *pool = hcd->pool[i];

		if (pool) {
			dma_pool_destroy(pool);
		dma_pool_destroy(hcd->pool[i]);
		hcd->pool[i] = NULL;
	}
}
}


/* sometimes alloc/free could use kmalloc with GFP_DMA, for