All of lore.kernel.org
 help / color / mirror / Atom feed
From: domen@coderock.org
To: davej@codemonkey.org.uk
Cc: linux-kernel@vger.kernel.org, domen@coderock.org, jlamanna@gmail.com
Subject: [patch 2/2] generic.c - vfree() checking cleanups
Date: Mon, 10 Jan 2005 19:47:21 +0100	[thread overview]
Message-ID: <20050110184722.68B461F1ED@trashy.coderock.org> (raw)



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);
_

                 reply	other threads:[~2005-01-10 18:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050110184722.68B461F1ED@trashy.coderock.org \
    --to=domen@coderock.org \
    --cc=davej@codemonkey.org.uk \
    --cc=jlamanna@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.