2005-01-04 14:25:44

by Vincent Hanquez

[permalink] [raw]
Subject: [PATCH] kill one "if (X) vfree(X)" usage

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

Signed-off-by: Vincent Hanquez <[email protected]>

--- 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: