linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 2/2] generic.c - vfree() checking cleanups
@ 2005-01-10 18:47 domen
  0 siblings, 0 replies; only message in thread
From: domen @ 2005-01-10 18:47 UTC (permalink / raw)
  To: davej; +Cc: linux-kernel, domen, jlamanna



generic.c vfree() checking cleanups.

Signed-off by: James Lamanna <jlamanna@gmail.com>


Signed-off-by: Domen Puncer <domen@coderock.org>
---


 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-01-10 18:00:58.000000000 +0100
+++ kj-domen/drivers/char/agp/generic.c	2005-01-10 18:00:58.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);
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-10 18:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-10 18:47 [patch 2/2] generic.c - vfree() checking cleanups domen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).