Skip to contentSkip to conversation

kill one "if (X) vfree(X)" usage

PATCH New Vincent Hanquez 1 participant 1 message Jan 4, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kill one "if (X) vfree(X)" usage

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

mm/swapfile.c renamed from mm/swapfile.c.orig +1 -2
@@ -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: