]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Usb: core: buffer: fixed the checkpatch warning
authorNizam Haider <nizamhaider786@gmail.com>
Wed, 29 Apr 2015 10:49:33 +0000 (16:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2015 13:44:10 +0000 (15:44 +0200)
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>
drivers/usb/core/buffer.c

index 506b969ea7fdc96ef69bafeef70bf486061db62d..89f2e7765093955b9bc37b1efcf5013d69f64482 100644 (file)
@@ -70,7 +70,7 @@ int hcd_buffer_create(struct usb_hcd *hcd)
                size = pool_max[i];
                if (!size)
                        continue;
-               snprintf(name, sizeof name, "buffer-%d", size);
+               snprintf(name, sizeof(name), "buffer-%d", size);
                hcd->pool[i] = dma_pool_create(name, hcd->self.controller,
                                size, size, 0);
                if (!hcd->pool[i]) {
@@ -95,6 +95,7 @@ void hcd_buffer_destroy(struct usb_hcd *hcd)
 
        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;