Commit a5c35111 authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: dh: Remove scsi_dh_remove_device()

Remove this function since it has an empty body.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent e4c9470b
...@@ -186,7 +186,6 @@ void scsi_dh_release_device(struct scsi_device *sdev); ...@@ -186,7 +186,6 @@ void scsi_dh_release_device(struct scsi_device *sdev);
static inline void scsi_dh_add_device(struct scsi_device *sdev) { } static inline void scsi_dh_add_device(struct scsi_device *sdev) { }
static inline void scsi_dh_release_device(struct scsi_device *sdev) { } static inline void scsi_dh_release_device(struct scsi_device *sdev) { }
#endif #endif
static inline void scsi_dh_remove_device(struct scsi_device *sdev) { }
/* /*
* internal scsi timeout functions: for use by mid-layer and transport * internal scsi timeout functions: for use by mid-layer and transport
......
...@@ -1277,7 +1277,6 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev) ...@@ -1277,7 +1277,6 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)
if (error) { if (error) {
sdev_printk(KERN_INFO, sdev, sdev_printk(KERN_INFO, sdev,
"failed to add device: %d\n", error); "failed to add device: %d\n", error);
scsi_dh_remove_device(sdev);
return error; return error;
} }
...@@ -1286,7 +1285,6 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev) ...@@ -1286,7 +1285,6 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)
if (error) { if (error) {
sdev_printk(KERN_INFO, sdev, sdev_printk(KERN_INFO, sdev,
"failed to add class device: %d\n", error); "failed to add class device: %d\n", error);
scsi_dh_remove_device(sdev);
device_del(&sdev->sdev_gendev); device_del(&sdev->sdev_gendev);
return error; return error;
} }
...@@ -1353,7 +1351,6 @@ void __scsi_remove_device(struct scsi_device *sdev) ...@@ -1353,7 +1351,6 @@ void __scsi_remove_device(struct scsi_device *sdev)
bsg_unregister_queue(sdev->request_queue); bsg_unregister_queue(sdev->request_queue);
device_unregister(&sdev->sdev_dev); device_unregister(&sdev->sdev_dev);
transport_remove_device(dev); transport_remove_device(dev);
scsi_dh_remove_device(sdev);
device_del(dev); device_del(dev);
} else } else
put_device(&sdev->sdev_dev); put_device(&sdev->sdev_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment