[patch 2/3] generic.c - vfree() checking cleanups

From: domen
Date: Sat Mar 05 2005 - 10:35:28 EST




generic.c vfree() checking cleanups.

Signed-off by: James Lamanna <jlamanna@xxxxxxxxx>
Signed-off-by: Domen Puncer <domen@xxxxxxxxxxxx>
---


kj-domen/drivers/char/agp/generic.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)

diff -puN drivers/char/agp/generic.c~vfree-drivers_char_agp_generic drivers/char/agp/generic.c
--- kj/drivers/char/agp/generic.c~vfree-drivers_char_agp_generic 2005-03-05 16:10:29.000000000 +0100
+++ kj-domen/drivers/char/agp/generic.c 2005-03-05 16:10:29.000000000 +0100
@@ -920,8 +920,7 @@ EXPORT_SYMBOL(agp_generic_alloc_by_type)

void agp_generic_free_by_type(struct agp_memory *curr)
{
- if (curr->memory != NULL)
- vfree(curr->memory);
+ vfree(curr->memory);

agp_free_key(curr->key);
kfree(curr);
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/