diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/cdrom/mcdx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/cdrom/mcdx.c b/drivers/cdrom/mcdx.c index b89420e6d704..a0b580c22d80 100644 --- a/drivers/cdrom/mcdx.c +++ b/drivers/cdrom/mcdx.c | |||
@@ -1085,7 +1085,7 @@ static int __init mcdx_init_drive(int drive) | |||
1085 | 1085 | ||
1086 | xtrace(INIT, "kmalloc space for stuffpt's\n"); | 1086 | xtrace(INIT, "kmalloc space for stuffpt's\n"); |
1087 | xtrace(MALLOC, "init() malloc %d bytes\n", size); | 1087 | xtrace(MALLOC, "init() malloc %d bytes\n", size); |
1088 | if (!(stuffp = kmalloc(size, GFP_KERNEL))) { | 1088 | if (!(stuffp = kzalloc(size, GFP_KERNEL))) { |
1089 | xwarn("init() malloc failed\n"); | 1089 | xwarn("init() malloc failed\n"); |
1090 | return 1; | 1090 | return 1; |
1091 | } | 1091 | } |
@@ -1101,8 +1101,6 @@ static int __init mcdx_init_drive(int drive) | |||
1101 | sizeof(*stuffp), stuffp); | 1101 | sizeof(*stuffp), stuffp); |
1102 | 1102 | ||
1103 | /* set default values */ | 1103 | /* set default values */ |
1104 | memset(stuffp, 0, sizeof(*stuffp)); | ||
1105 | |||
1106 | stuffp->present = 0; /* this should be 0 already */ | 1104 | stuffp->present = 0; /* this should be 0 already */ |
1107 | stuffp->toc = NULL; /* this should be NULL already */ | 1105 | stuffp->toc = NULL; /* this should be NULL already */ |
1108 | 1106 | ||