summaryrefslogtreecommitdiffstats
path: root/drivers/atm/lanai.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-05-28 19:36:23 +0200
committerJiri Kosina <jkosina@suse.cz>2011-09-15 13:55:02 +0200
commit3a816054fcd345d0fe47c666c375d372c6170371 (patch)
tree8b775cdb79a0c8d1759b4eaa7adbd57b0fae01ce /drivers/atm/lanai.c
parents390: Convert vmalloc/memset to vzalloc (diff)
downloadlinux-3a816054fcd345d0fe47c666c375d372c6170371.tar.xz
linux-3a816054fcd345d0fe47c666c375d372c6170371.zip
atm: Convert vmalloc/memset to vzalloc
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to '')
-rw-r--r--drivers/atm/lanai.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c
index e828c5487493..f5569699f31c 100644
--- a/drivers/atm/lanai.c
+++ b/drivers/atm/lanai.c
@@ -1457,10 +1457,9 @@ static int __devinit vcc_table_allocate(struct lanai_dev *lanai)
return (lanai->vccs == NULL) ? -ENOMEM : 0;
#else
int bytes = (lanai->num_vci) * sizeof(struct lanai_vcc *);
- lanai->vccs = (struct lanai_vcc **) vmalloc(bytes);
+ lanai->vccs = vzalloc(bytes);
if (unlikely(lanai->vccs == NULL))
return -ENOMEM;
- memset(lanai->vccs, 0, bytes);
return 0;
#endif
}