Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1211650 > unrolled thread

[PATCH] usb: core: buffer: Added parenthesis to sizeof

Started byMuhammad Falak R Wani <falakreyaz@gmail.com>
First post2015-08-23 19:20 +0200
Last post2015-08-23 19:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] usb: core: buffer: Added parenthesis to sizeof Muhammad Falak R Wani <falakreyaz@gmail.com> - 2015-08-23 19:20 +0200

#1211650 — [PATCH] usb: core: buffer: Added parenthesis to sizeof

FromMuhammad Falak R Wani <falakreyaz@gmail.com>
Date2015-08-23 19:20 +0200
Subject[PATCH] usb: core: buffer: Added parenthesis to sizeof
Message-ID<q0H61-7co-11@gated-at.bofh.it>
This patch fixes a coding style issue by adding parenthesis
to the sizeof operator, which is the preferred way of using it.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
---
 drivers/usb/core/buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/core/buffer.c b/drivers/usb/core/buffer.c
index 506b969..58004eb 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)
 		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]) {
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web