Skip to contentSkip to conversation

Remove obsolete scsi_destroy_sdev() function

PATCH In review Hannes Reinecke 1 participant 1 message May 23, 2007 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 7/9 Remove obsolete scsi_destroy_sdev() function

scsi_destroy_sdev() is now obsolete. Delete it.

---
 drivers/scsi/scsi_scan.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
drivers/scsi/scsi_scan.c +0 -8
index 82fad00..2653015 100644
@@ -941,14 +941,6 @@ static int scsi_add_lun(struct scsi_devi
 	return SCSI_SCAN_LUN_PRESENT;
 }
 
-static inline void scsi_destroy_sdev(struct scsi_device *sdev)
-{
-	scsi_device_set_state(sdev, SDEV_DEL);
-	if (sdev->host->hostt->slave_destroy)
-		sdev->host->hostt->slave_destroy(sdev);
-	scsi_destroy_device(sdev);
-}
-
 #ifdef CONFIG_SCSI_LOGGING
 /** 
  * scsi_inq_str - print INQUIRY data from min to max index,
Signature · 1 line
1.4.3.4