linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kill one "if (X) vfree(X)" usage
@ 2005-01-04 14:25 Vincent Hanquez
  0 siblings, 0 replies; only message in thread
From: Vincent Hanquez @ 2005-01-04 14:25 UTC (permalink / raw)
  To: Andrew Morton; +Cc: lkml

Hi, the following patch remove a if (x) vfree(x) usage
please apply.

Signed-off-by: Vincent Hanquez <tab@snarc.org>

--- linux-2.6.10.orig/mm/swapfile.c.orig	2005-01-04 14:59:04 +0100
+++ linux-2.6.10/mm/swapfile.c	2005-01-04 14:59:35 +0100
@@ -1592,8 +1592,7 @@
 		++least_priority;
 	swap_list_unlock();
 	destroy_swap_extents(p);
-	if (swap_map)
-		vfree(swap_map);
+	vfree(swap_map);
 	if (swap_file)
 		filp_close(swap_file, NULL);
 out:

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

only message in thread, other threads:[~2005-01-04 14:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-04 14:25 [PATCH] kill one "if (X) vfree(X)" usage Vincent Hanquez

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).