diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2005-12-11 15:18:26 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-01-05 18:28:06 -0500 |
commit | 8084b372adac9c24ff7abdd939b2e8816e7b88a3 (patch) | |
tree | a4a4005d7b025abc0a3e7693404abd0abbfd434b /drivers/pcmcia/au1000_generic.c | |
parent | 6423efaacbf0bce6372897e793d8450c1c08ec8d (diff) |
[PATCH] pcmcia: kzalloc conversion
Convert users of kmalloc and memset to kzalloc
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/au1000_generic.c')
-rw-r--r-- | drivers/pcmcia/au1000_generic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pcmcia/au1000_generic.c b/drivers/pcmcia/au1000_generic.c index 0868b72c3996..971a35281649 100644 --- a/drivers/pcmcia/au1000_generic.c +++ b/drivers/pcmcia/au1000_generic.c | |||
@@ -354,13 +354,12 @@ int au1x00_pcmcia_socket_probe(struct device *dev, struct pcmcia_low_level *ops, | |||
354 | struct skt_dev_info *sinfo; | 354 | struct skt_dev_info *sinfo; |
355 | int ret, i; | 355 | int ret, i; |
356 | 356 | ||
357 | sinfo = kmalloc(sizeof(struct skt_dev_info), GFP_KERNEL); | 357 | sinfo = kzalloc(sizeof(struct skt_dev_info), GFP_KERNEL); |
358 | if (!sinfo) { | 358 | if (!sinfo) { |
359 | ret = -ENOMEM; | 359 | ret = -ENOMEM; |
360 | goto out; | 360 | goto out; |
361 | } | 361 | } |
362 | 362 | ||
363 | memset(sinfo, 0, sizeof(struct skt_dev_info)); | ||
364 | sinfo->nskt = nr; | 363 | sinfo->nskt = nr; |
365 | 364 | ||
366 | /* | 365 | /* |