提交 41511704 编写于 作者: A Alan Stern 提交者: James Bottomley

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

Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
上级 bfcf72e4
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册