projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e69817
)
USB: Removing NULL check for pool since dma_pool_destroy is safe
author
Salil Kapur
<salilkapur93@gmail.com>
Mon, 6 Aug 2018 04:28:08 +0000
(21:28 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 18:01:04 +0000
(20:01 +0200)
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>
drivers/usb/core/buffer.c
patch
|
blob
|
history
diff --git
a/drivers/usb/core/buffer.c
b/drivers/usb/core/buffer.c
index 77eef8acff94e89311d9d549f046029bd4659a9b..f641342cdec09491bb856f114123322bc0446cb6 100644
(file)
--- a/
drivers/usb/core/buffer.c
+++ b/
drivers/usb/core/buffer.c
@@
-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;
}
}