mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 09:34:17 +00:00
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: Salil Kapur <salilkapur93@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4e69817b10
commit
71741bd677
@ -101,12 +101,8 @@ void hcd_buffer_destroy(struct usb_hcd *hcd)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = 0; i < HCD_BUFFER_POOLS; i++) {
|
for (i = 0; i < HCD_BUFFER_POOLS; i++) {
|
||||||
struct dma_pool *pool = hcd->pool[i];
|
dma_pool_destroy(hcd->pool[i]);
|
||||||
|
hcd->pool[i] = NULL;
|
||||||
if (pool) {
|
|
||||||
dma_pool_destroy(pool);
|
|
||||||
hcd->pool[i] = NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user