diff options
author | Dave Jones <davej@redhat.com> | 2005-10-20 18:12:16 -0400 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2005-10-20 18:12:16 -0400 |
commit | 0ea27d9f2fb5b998063323bff47ab87891ced9e2 (patch) | |
tree | 1776e5eb03fb87184fc0e423da12acf5eb0540b7 /drivers/char/agp/backend.c | |
parent | 0ff541dafdcb9bc8933e7e4881e5924a408b5335 (diff) |
[AGPGART] Replace kmalloc+memset's with kzalloc's
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/char/agp/backend.c')
-rw-r--r-- | drivers/char/agp/backend.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/agp/backend.c b/drivers/char/agp/backend.c index 82b43c541c8d..73f333f491bd 100644 --- a/drivers/char/agp/backend.c +++ b/drivers/char/agp/backend.c | |||
@@ -222,12 +222,12 @@ static void agp_backend_cleanup(struct agp_bridge_data *bridge) | |||
222 | 222 | ||
223 | struct agp_bridge_data *agp_alloc_bridge(void) | 223 | struct agp_bridge_data *agp_alloc_bridge(void) |
224 | { | 224 | { |
225 | struct agp_bridge_data *bridge = kmalloc(sizeof(*bridge), GFP_KERNEL); | 225 | struct agp_bridge_data *bridge; |
226 | 226 | ||
227 | bridge = kzalloc(sizeof(*bridge), GFP_KERNEL); | ||
227 | if (!bridge) | 228 | if (!bridge) |
228 | return NULL; | 229 | return NULL; |
229 | 230 | ||
230 | memset(bridge, 0, sizeof(*bridge)); | ||
231 | atomic_set(&bridge->agp_in_use, 0); | 231 | atomic_set(&bridge->agp_in_use, 0); |
232 | atomic_set(&bridge->current_memory_agp, 0); | 232 | atomic_set(&bridge->current_memory_agp, 0); |
233 | 233 | ||