Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1411237
| From | Sandhya Bankar <bankarsandhya512@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] usb: musb_host: Use sizeof(*qh)instead of sizeof *qh. |
| Date | 2016-06-01 15:50 +0200 |
| Message-ID | <rFeH0-BQ-21@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] usb: musb_host: Use sizeof(*qh)instead of sizeof *qh. Sandhya Bankar <bankarsandhya512@gmail.com> - 2016-06-01 15:50 +0200 Re: [PATCH] usb: musb_host: Use sizeof(*qh)instead of sizeof *qh. Bin Liu <b-liu@ti.com> - 2016-06-02 23:40 +0200
csiph-web