All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging/line6: Fix kzalloc coding style issue
@ 2014-04-06 22:12 L. Alberto Giménez
       [not found] ` <s5hmwfxd69b.wl%tiwai@suse.de>
  0 siblings, 1 reply; 2+ messages in thread
From: L. Alberto Giménez @ 2014-04-06 22:12 UTC (permalink / raw)
  To: devel
  Cc: Greg Kroah-Hartman, Takashi Iwai, Chris Bajumpaa, Arnd Bergmann,
	open list

Pass the actual variable to sizeof instead of a type definition.

Signed-off-by: L. Alberto Giménez <agimenez@sysvalve.es>
---
 drivers/staging/line6/pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/line6/pcm.c b/drivers/staging/line6/pcm.c
index 661080b..a3136b1 100644
--- a/drivers/staging/line6/pcm.c
+++ b/drivers/staging/line6/pcm.c
@@ -475,7 +475,7 @@ int line6_init_pcm(struct usb_line6 *line6,
 		MISSING_CASE;
 	}
 
-	line6pcm = kzalloc(sizeof(struct snd_line6_pcm), GFP_KERNEL);
+	line6pcm = kzalloc(sizeof(*line6pcm), GFP_KERNEL);
 
 	if (line6pcm == NULL)
 		return -ENOMEM;
-- 
1.9.1


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

end of thread, other threads:[~2014-04-07 18:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-06 22:12 [PATCH] staging/line6: Fix kzalloc coding style issue L. Alberto Giménez
     [not found] ` <s5hmwfxd69b.wl%tiwai@suse.de>
2014-04-07 18:25   ` L. Alberto Giménez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.