[PATCH] kill one "if (X) vfree(X)" usage

From: Vincent Hanquez
Date: Tue Jan 04 2005 - 09:26:46 EST


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

Signed-off-by: Vincent Hanquez <tab@xxxxxxxxx>

--- 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:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/