mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +00:00
[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:
parent
bfcf72e442
commit
41511704b6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user