aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorVincent Hanquez <tab@snarc.org>2005-01-10 17:24:09 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-10 17:24:09 -0800
commitff6bc4ab2e792f1af28ecd696ab120e07cd0067a (patch)
treee102877391328f15346f297843d54934448ea433 /mm
parentb32012aee1a371e5beb5535950867d3a279b1273 (diff)
downloadhistory-ff6bc4ab2e792f1af28ecd696ab120e07cd0067a.tar.gz
[PATCH] kill one "if (X) vfree(X)" usage
Signed-off-by: Vincent Hanquez <tab@snarc.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/swapfile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index 5a00ea36120088..3ef403b591d64e 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -1634,8 +1634,7 @@ bad_swap_2:
++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: