projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6b4699
)
staging/line6: Fix kzalloc coding style issue
author
L. Alberto Giménez
<agimenez@sysvalve.es>
Sun, 6 Apr 2014 22:12:30 +0000
(
00:12
+0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 17 Apr 2014 03:30:04 +0000
(20:30 -0700)
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>
drivers/staging/line6/pcm.c
patch
|
blob
|
history
diff --git
a/drivers/staging/line6/pcm.c
b/drivers/staging/line6/pcm.c
index 661080b3c39df8c2f8e1c43ed9473d4eb603cc25..a3136b189ee5bc7f670f96379e81e0f58c253871 100644
(file)
--- 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(
*line6
pcm), GFP_KERNEL);
if (line6pcm == NULL)
return -ENOMEM;