diff options
author | Dave Jones <davej@redhat.com> | 2005-10-20 15:12:16 -0700 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2005-10-20 15:12:16 -0700 |
commit | 0ea27d9f2fb5b998063323bff47ab87891ced9e2 (patch) | |
tree | 1776e5eb03fb87184fc0e423da12acf5eb0540b7 /drivers/char/agp/generic.c | |
parent | 0ff541dafdcb9bc8933e7e4881e5924a408b5335 (diff) | |
download | blackbird-op-linux-0ea27d9f2fb5b998063323bff47ab87891ced9e2.tar.gz blackbird-op-linux-0ea27d9f2fb5b998063323bff47ab87891ced9e2.zip |
[AGPGART] Replace kmalloc+memset's with kzalloc's
Signed-off-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'drivers/char/agp/generic.c')
-rw-r--r-- | drivers/char/agp/generic.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/agp/generic.c b/drivers/char/agp/generic.c index ac9da0ca36b7..b0f2a6faf676 100644 --- a/drivers/char/agp/generic.c +++ b/drivers/char/agp/generic.c @@ -105,12 +105,10 @@ struct agp_memory *agp_create_memory(int scratch_pages) { struct agp_memory *new; - new = kmalloc(sizeof(struct agp_memory), GFP_KERNEL); - + new = kzalloc(sizeof(struct agp_memory), GFP_KERNEL); if (new == NULL) return NULL; - memset(new, 0, sizeof(struct agp_memory)); new->key = agp_get_key(); if (new->key < 0) { |