projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c76bc5
)
[PATCH] drivers/cdrom: kmalloc + memset -> kzalloc conversion
author
Deepak Saxena
<dsaxena@plexity.net>
Mon, 7 Nov 2005 09:01:22 +0000
(
01:01
-0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 7 Nov 2005 15:53:59 +0000
(07:53 -0800)
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/cdrom/mcdx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/cdrom/mcdx.c
b/drivers/cdrom/mcdx.c
index b89420e6d7047ce41e7c252363e07e8b4de43904..a0b580c22d80942dbd75536609076f219edce33b 100644
(file)
--- a/
drivers/cdrom/mcdx.c
+++ b/
drivers/cdrom/mcdx.c
@@
-1085,7
+1085,7
@@
static int __init mcdx_init_drive(int drive)
xtrace(INIT, "kmalloc space for stuffpt's\n");
xtrace(MALLOC, "init() malloc %d bytes\n", size);
- if (!(stuffp = k
m
alloc(size, GFP_KERNEL))) {
+ if (!(stuffp = k
z
alloc(size, GFP_KERNEL))) {
xwarn("init() malloc failed\n");
return 1;
}
@@
-1101,8
+1101,6
@@
static int __init mcdx_init_drive(int drive)
sizeof(*stuffp), stuffp);
/* set default values */
- memset(stuffp, 0, sizeof(*stuffp));
-
stuffp->present = 0; /* this should be 0 already */
stuffp->toc = NULL; /* this should be NULL already */