diff options
author | Nizam Haider <nizamhaider786@gmail.com> | 2015-04-29 06:49:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-10 09:44:10 -0400 |
commit | 424dd7dd9b48691c1bb57440493590c012199a95 (patch) | |
tree | f8c248af5bfba4d2ffe591290f620231d8896d92 /drivers/usb/core/buffer.c | |
parent | 34ef33f7da6b00900d3a896d33522a035a930245 (diff) |
Usb: core: buffer: fixed the checkpatch warning
Fixed two warnings sizeof name and Blank line after declaration
Signed-off-by: Nizam Haider <nizamhaider786@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/buffer.c')
-rw-r--r-- | drivers/usb/core/buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/buffer.c b/drivers/usb/core/buffer.c index 506b969ea7fd..89f2e7765093 100644 --- a/drivers/usb/core/buffer.c +++ b/drivers/usb/core/buffer.c | |||
@@ -70,7 +70,7 @@ int hcd_buffer_create(struct usb_hcd *hcd) | |||
70 | size = pool_max[i]; | 70 | size = pool_max[i]; |
71 | if (!size) | 71 | if (!size) |
72 | continue; | 72 | continue; |
73 | snprintf(name, sizeof name, "buffer-%d", size); | 73 | snprintf(name, sizeof(name), "buffer-%d", size); |
74 | hcd->pool[i] = dma_pool_create(name, hcd->self.controller, | 74 | hcd->pool[i] = dma_pool_create(name, hcd->self.controller, |
75 | size, size, 0); | 75 | size, size, 0); |
76 | if (!hcd->pool[i]) { | 76 | if (!hcd->pool[i]) { |
@@ -95,6 +95,7 @@ void hcd_buffer_destroy(struct usb_hcd *hcd) | |||
95 | 95 | ||
96 | for (i = 0; i < HCD_BUFFER_POOLS; i++) { | 96 | for (i = 0; i < HCD_BUFFER_POOLS; i++) { |
97 | struct dma_pool *pool = hcd->pool[i]; | 97 | struct dma_pool *pool = hcd->pool[i]; |
98 | |||
98 | if (pool) { | 99 | if (pool) { |
99 | dma_pool_destroy(pool); | 100 | dma_pool_destroy(pool); |
100 | hcd->pool[i] = NULL; | 101 | hcd->pool[i] = NULL; |