Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226890
b: refs/heads/master
c: 4151170
h: refs/heads/master
v: v3
  • Loading branch information
Alan Stern authored and James Bottomley committed Jan 3, 2011
1 parent 9259ab7 commit 186b386
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bfcf72e4426da2fd8f8081a641385ffc3ccc2282
refs/heads/master: 41511704b678f7b101a76e58d6c6b7bbe2a9ad70
6 changes: 2 additions & 4 deletions trunk/drivers/scsi/scsi_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 186b386

Please sign in to comment.