diff options
author | L. Alberto Giménez <agimenez@sysvalve.es> | 2014-04-07 00:12:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-16 20:30:04 -0700 |
commit | 5565c59e9b1b329f58e7b4a3e307a2bc7c12605c (patch) | |
tree | ebc9a6c35e981bd949d0f5fadfa7d5675d1117ea /drivers/staging | |
parent | a6b4699dbfe995cc8e5e6f07d61227a6a36bd5df (diff) | |
download | op-kernel-dev-5565c59e9b1b329f58e7b4a3e307a2bc7c12605c.zip op-kernel-dev-5565c59e9b1b329f58e7b4a3e307a2bc7c12605c.tar.gz |
staging/line6: Fix kzalloc coding style issue
Pass the actual variable to sizeof instead of a type definition.
Signed-off-by: L. Alberto Giménez <agimenez@sysvalve.es>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/line6/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |