Skip to content

Commit 03eb6b8

Browse files
ming1martinkpetersen
authored andcommitted
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>
1 parent bcd8f2e commit 03eb6b8

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/scsi/scsi_scan.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,6 @@ static void scsi_sequential_lun_scan(struct scsi_target *starget,
13071307
static int scsi_report_lun_scan(struct scsi_target *starget, int bflags,
13081308
enum scsi_scan_mode rescan)
13091309
{
1310-
char devname[64];
13111310
unsigned char scsi_cmd[MAX_COMMAND_SIZE];
13121311
unsigned int length;
13131312
u64 lun;
@@ -1349,9 +1348,6 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags,
13491348
}
13501349
}
13511350

1352-
sprintf(devname, "host %d channel %d id %d",
1353-
shost->host_no, sdev->channel, sdev->id);
1354-
13551351
/*
13561352
* Allocate enough to hold the header (the same size as one scsi_lun)
13571353
* plus the number of luns we are requesting. 511 was the default

0 commit comments

Comments
 (0)