diff options
author | Ye Bin <yebin10@huawei.com> | 2020-09-09 16:26:26 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-09-09 22:41:50 -0400 |
commit | 8b02fc756af69d6edbcc34b63ae4cec4503dfaa0 (patch) | |
tree | 3e695fe12a3216425f5c3336bdc21fa00f151f67 | |
parent | 27216a9d85a0be1cf6e58b64c1cb626a6170c8f3 (diff) | |
download | linux-8b02fc756af69d6edbcc34b63ae4cec4503dfaa0.tar.gz linux-8b02fc756af69d6edbcc34b63ae4cec4503dfaa0.tar.bz2 linux-8b02fc756af69d6edbcc34b63ae4cec4503dfaa0.zip |
scsi: gdth: Remove set but used 'cmd_index'
This addresses the following gcc warning with "make W=1":
drivers/scsi/gdth.c: In function ‘gdth_async_event’:
drivers/scsi/gdth.c:3010:9: warning: variable ‘cmd_index’ set but not
used [-Wunused-but-set-variable]
int cmd_index;
Link: https://lore.kernel.org/r/20200909082627.101984-1-yebin10@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/gdth.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index 7f150d52b4a6..dc0e17729acf 100644 --- a/drivers/scsi/gdth.c +++ b/drivers/scsi/gdth.c @@ -3007,7 +3007,6 @@ static char *async_cache_tab[] = { static int gdth_async_event(gdth_ha_str *ha) { gdth_cmd_str *cmdp; - int cmd_index; cmdp= ha->pccb; TRACE2(("gdth_async_event() ha %d serv %d\n", @@ -3019,7 +3018,6 @@ static int gdth_async_event(gdth_ha_str *ha) gdth_delay(0); cmdp->Service = SCREENSERVICE; cmdp->RequestBuffer = SCREEN_CMND; - cmd_index = gdth_get_cmd_index(ha); gdth_set_sema0(ha); cmdp->OpCode = GDT_READ; cmdp->BoardNode = LOCALBOARD; |