git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1639c8a
)
Staging: sm7xx: preferred form for passing a size to memory allocation routines
author
anish kumar
<anish198519851985@gmail.com>
Thu, 19 May 2011 15:28:51 +0000
(20:58 +0530)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 19 May 2011 22:34:32 +0000
(15:34 -0700)
The preferred form for passing a size of a struct is the following:
p = kmalloc(sizeof(*p), ...);
Please refer Documentation/Codingstyle chapter 14
Signed-off-by: anish kumar <anish198519851985@gmail.com>
Acked-by: Harry Wei <harryxiyou@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
No differences found