linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: musb_host: Use sizeof(*qh)instead of sizeof *qh.
@ 2016-06-01 13:40 Sandhya Bankar
  2016-06-02 21:30 ` Bin Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Sandhya Bankar @ 2016-06-01 13:40 UTC (permalink / raw)
  To: b-liu, gregkh, linux-usb, linux-kernel

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

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
---
 drivers/usb/musb/musb_host.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
index 2f8ad7f..72121fe 100644
--- a/drivers/usb/musb/musb_host.c
+++ b/drivers/usb/musb/musb_host.c
@@ -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);
-- 
1.8.3.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] usb: musb_host: Use sizeof(*qh)instead of sizeof *qh.
  2016-06-01 13:40 [PATCH] usb: musb_host: Use sizeof(*qh)instead of sizeof *qh Sandhya Bankar
@ 2016-06-02 21:30 ` Bin Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Bin Liu @ 2016-06-02 21:30 UTC (permalink / raw)
  To: Sandhya Bankar; +Cc: gregkh, linux-usb, linux-kernel

Hi,

On Wed, Jun 01, 2016 at 09:40:06AM -0400, Sandhya Bankar wrote:
> Use sizeof(*qh)instead of sizeof *qh.
> 
> Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>

Please revise the subject prefix to "usb: musb: host: ...".

Regards,
-Bin.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-02 21:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-01 13:40 [PATCH] usb: musb_host: Use sizeof(*qh)instead of sizeof *qh Sandhya Bankar
2016-06-02 21:30 ` Bin Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).