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

Commit 41511704 authored by Alan Stern's avatar Alan Stern Committed by James Bottomley
Browse files

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

parent bfcf72e4
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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);