aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
-rw-r--r--drivers/scsi/scsi_scan.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
index 74863da1d630..dfdbbd008630 100644
--- a/drivers/scsi/scsi_scan.c
+++ b/drivers/scsi/scsi_scan.c
@@ -687,12 +687,8 @@ static int scsi_add_lun(struct scsi_device *sdev, char *inq_result, int *bflags)
687 if (inq_result[7] & 0x10) 687 if (inq_result[7] & 0x10)
688 sdev->sdtr = 1; 688 sdev->sdtr = 1;
689 689
690 sprintf(sdev->devfs_name, "scsi/host%d/bus%d/target%d/lun%d",
691 sdev->host->host_no, sdev->channel,
692 sdev->id, sdev->lun);
693
694 /* 690 /*
695 * End driverfs/devfs code. 691 * End sysfs code.
696 */ 692 */
697 693
698 if ((sdev->scsi_level >= SCSI_2) && (inq_result[7] & 2) && 694 if ((sdev->scsi_level >= SCSI_2) && (inq_result[7] & 2) &&