scsi_debug: vfree is null safe so drop the check
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Douglas Gilbert <dgilbert@interlog.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
This commit is contained in:
parent
34d55434ba
commit
de232af670
|
@ -4955,10 +4955,8 @@ bus_unreg:
|
|||
dev_unreg:
|
||||
root_device_unregister(pseudo_primary);
|
||||
free_vm:
|
||||
if (map_storep)
|
||||
vfree(map_storep);
|
||||
if (dif_storep)
|
||||
vfree(dif_storep);
|
||||
vfree(map_storep);
|
||||
vfree(dif_storep);
|
||||
vfree(fake_storep);
|
||||
|
||||
return ret;
|
||||
|
@ -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(dif_storep);
|
||||
vfree(fake_storep);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue