Skip to contentSkip to conversation

usb: musb_host: Use sizeof(*qh)instead of sizeof *qh.

PATCH In review Sandhya Bankar 2 participants 2 messages Jun 1, 2016 – Jun 2, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: musb_host: Use sizeof(*qh)instead of sizeof *qh.

Use sizeof(*qh)instead of sizeof *qh.

---
 drivers/usb/musb/musb_host.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/musb/musb_host.c +1 -1
index 2f8ad7f..72121fe 100644
@@ -2228,7 +2228,7 @@ static int musb_urb_enqueue(
 	 * REVISIT consider a dedicated qh kmem_cache, so it's harder
 	 * for bugs in other kernel code to break this driver...
 	 */
-	qh = kzalloc(sizeof *qh, mem_flags);
+	qh = kzalloc(sizeof(*qh), mem_flags);
 	if (!qh) {
 		spin_lock_irqsave(&musb->lock, flags);
 		usb_hcd_unlink_urb_from_ep(hcd, urb);
Signature · 1 line
1.8.3.4