Remove stale put_device() from scsi_sysfs_add_sdev()
PATCH 3/9 Remove stale put_device() from scsi_sysfs_add_sdev()
In one obscure error path someone decided to do a put_device() on the sdev parent.
As this is the only reference to it I don't thing it makes much sense. Remove it.
Signed-off-by Hannes Reinecke <[email protected]>
--- drivers/scsi/scsi_sysfs.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/scsi/scsi_sysfs.c +0 -1
@@ -739,7 +739,6 @@ int scsi_sysfs_add_sdev(struct scsi_devi error =device_add (&sdev->sdev_gendev);if (error) { -put_device (sdev->sdev_gendev.parent);sdev_printk (KERN_INFO , sdev,"failed to add device (error %d)\n" , error);return error;
Signature · 1 line
1.4.3.4