2005-03-05 15:31:23

by Domen Puncer

[permalink] [raw]
Subject: [patch 1/3] backend.c - vfree() checking cleanups



backend.c vfree() checking cleanups.

Signed-off by: James Lamanna <[email protected]>
Signed-off-by: Domen Puncer <[email protected]>
---


kj-domen/drivers/char/agp/backend.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)

diff -puN drivers/char/agp/backend.c~vfree-drivers_char_agp_backend drivers/char/agp/backend.c
--- kj/drivers/char/agp/backend.c~vfree-drivers_char_agp_backend 2005-03-05 16:10:29.000000000 +0100
+++ kj-domen/drivers/char/agp/backend.c 2005-03-05 16:10:29.000000000 +0100
@@ -203,10 +203,9 @@ static void agp_backend_cleanup(struct a
bridge->driver->cleanup();
if (bridge->driver->free_gatt_table)
bridge->driver->free_gatt_table();
- if (bridge->key_list) {
- vfree(bridge->key_list);
- bridge->key_list = NULL;
- }
+
+ vfree(bridge->key_list);
+ bridge->key_list = NULL;

if (bridge->driver->agp_destroy_page &&
bridge->driver->needs_scratch_page)
_