diff options
author | Ming Lei <tom.leiming@gmail.com> | 2016-10-10 11:25:33 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-10-11 18:02:09 -0400 |
commit | 03eb6b8d314e89e94d4f79ee3d3e6596a75bc857 (patch) | |
tree | fe9fb9c41b1ff1626cf4fd71fafe9792c8bb5183 /drivers | |
parent | bcd8f2e94808fcddf6ef3af5f060a36820dcc432 (diff) |
scsi: Remove one useless stack variable
The local variable of 'devname' in scsi_report_lun_scan() isn't used any
more, so remove it.
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/scsi_scan.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index bb9b58e21d95..6f7128f49c30 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c | |||
@@ -1307,7 +1307,6 @@ static void scsi_sequential_lun_scan(struct scsi_target *starget, | |||
1307 | static int scsi_report_lun_scan(struct scsi_target *starget, int bflags, | 1307 | static int scsi_report_lun_scan(struct scsi_target *starget, int bflags, |
1308 | enum scsi_scan_mode rescan) | 1308 | enum scsi_scan_mode rescan) |
1309 | { | 1309 | { |
1310 | char devname[64]; | ||
1311 | unsigned char scsi_cmd[MAX_COMMAND_SIZE]; | 1310 | unsigned char scsi_cmd[MAX_COMMAND_SIZE]; |
1312 | unsigned int length; | 1311 | unsigned int length; |
1313 | u64 lun; | 1312 | u64 lun; |
@@ -1349,9 +1348,6 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags, | |||
1349 | } | 1348 | } |
1350 | } | 1349 | } |
1351 | 1350 | ||
1352 | sprintf(devname, "host %d channel %d id %d", | ||
1353 | shost->host_no, sdev->channel, sdev->id); | ||
1354 | |||
1355 | /* | 1351 | /* |
1356 | * Allocate enough to hold the header (the same size as one scsi_lun) | 1352 | * Allocate enough to hold the header (the same size as one scsi_lun) |
1357 | * plus the number of luns we are requesting. 511 was the default | 1353 | * plus the number of luns we are requesting. 511 was the default |