diff options
Diffstat (limited to 'drivers/serial/serial_cs.c')
-rw-r--r-- | drivers/serial/serial_cs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/serial/serial_cs.c b/drivers/serial/serial_cs.c index 431433f4dd6d..c2f1012449da 100644 --- a/drivers/serial/serial_cs.c +++ b/drivers/serial/serial_cs.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include <linux/moduleparam.h> | 35 | #include <linux/moduleparam.h> |
36 | #include <linux/kernel.h> | 36 | #include <linux/kernel.h> |
37 | #include <linux/init.h> | 37 | #include <linux/init.h> |
38 | #include <linux/sched.h> | ||
39 | #include <linux/ptrace.h> | 38 | #include <linux/ptrace.h> |
40 | #include <linux/slab.h> | 39 | #include <linux/slab.h> |
41 | #include <linux/string.h> | 40 | #include <linux/string.h> |
@@ -334,10 +333,9 @@ static int serial_probe(struct pcmcia_device *link) | |||
334 | DEBUG(0, "serial_attach()\n"); | 333 | DEBUG(0, "serial_attach()\n"); |
335 | 334 | ||
336 | /* Create new serial device */ | 335 | /* Create new serial device */ |
337 | info = kmalloc(sizeof (*info), GFP_KERNEL); | 336 | info = kzalloc(sizeof (*info), GFP_KERNEL); |
338 | if (!info) | 337 | if (!info) |
339 | return -ENOMEM; | 338 | return -ENOMEM; |
340 | memset(info, 0, sizeof (*info)); | ||
341 | info->p_dev = link; | 339 | info->p_dev = link; |
342 | link->priv = info; | 340 | link->priv = info; |
343 | 341 | ||