aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorL. Alberto Giménez <agimenez@sysvalve.es>2014-04-07 00:12:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-16 20:30:04 -0700
commit5565c59e9b1b329f58e7b4a3e307a2bc7c12605c (patch)
treeebc9a6c35e981bd949d0f5fadfa7d5675d1117ea
parentstaging: line6: Add blank lines after declarations (diff)
downloadlinux-dev-5565c59e9b1b329f58e7b4a3e307a2bc7c12605c.tar.xz
linux-dev-5565c59e9b1b329f58e7b4a3e307a2bc7c12605c.zip
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>
-rw-r--r--drivers/staging/line6/pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/line6/pcm.c b/drivers/staging/line6/pcm.c
index 661080b3c39d..a3136b189ee5 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;