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

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
......@@ -101,13 +101,9 @@ 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;
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment