提交 71741bd6 编写于 作者: S Salil Kapur 提交者: 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: NSalil Kapur <salilkapur93@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 4e69817b
......@@ -101,12 +101,8 @@ 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);
hcd->pool[i] = NULL;
}
dma_pool_destroy(hcd->pool[i]);
hcd->pool[i] = NULL;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册