[SCSI] eliminate an unnecessary local variable from scsi_remove_target()

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
Alan Stern 2010-11-15 16:04:56 -05:00 committed by James Bottomley
parent bfcf72e442
commit 41511704b6
1 changed files with 2 additions and 4 deletions

View File

@ -993,16 +993,14 @@ static int __remove_child (struct device * dev, void * data)
*/
void scsi_remove_target(struct device *dev)
{
struct device *rdev;
if (scsi_is_target_device(dev)) {
__scsi_remove_target(to_scsi_target(dev));
return;
}
rdev = get_device(dev);
get_device(dev);
device_for_each_child(dev, NULL, __remove_child);
put_device(rdev);
put_device(dev);
}
EXPORT_SYMBOL(scsi_remove_target);