diff options
author | Vincent Hanquez <tab@snarc.org> | 2005-01-10 17:24:09 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-10 17:24:09 -0800 |
commit | ff6bc4ab2e792f1af28ecd696ab120e07cd0067a (patch) | |
tree | e102877391328f15346f297843d54934448ea433 /mm | |
parent | b32012aee1a371e5beb5535950867d3a279b1273 (diff) | |
download | history-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.c | 3 |
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: |