Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de232af6 authored by Tomas Winkler's avatar Tomas Winkler Committed by James Bottomley
Browse files

scsi_debug: vfree is null safe so drop the check

parent 34d55434
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -4955,9 +4955,7 @@ static int __init scsi_debug_init(void)
dev_unreg:
	root_device_unregister(pseudo_primary);
free_vm:
	if (map_storep)
	vfree(map_storep);
	if (dif_storep)
	vfree(dif_storep);
	vfree(fake_storep);

@@ -4976,9 +4974,7 @@ static void __exit scsi_debug_exit(void)
	bus_unregister(&pseudo_lld_bus);
	root_device_unregister(pseudo_primary);

	if (dif_storep)
	vfree(dif_storep);

	vfree(fake_storep);
}