Skip to contentSkip to conversation

usb: core: buffer: Added parenthesis to sizeof

PATCH New Muhammad Falak R Wani 1 participant 1 message Aug 23, 2015 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: core: buffer: Added parenthesis to sizeof

This patch fixes a coding style issue by adding parenthesis to the sizeof operator, which is the preferred way of using it.

---
 drivers/usb/core/buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/core/buffer.c +1 -1
index 506b969..58004eb 100644
@@ -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]) {
Signature · 1 line
1.9.1