scsi: gdth: Remove set but used 'cmd_index'
Subsystems (2)
PATCH 1/1 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;
Reported-by Hulk Robot <[email protected]>
Signed-off-by Ye Bin <[email protected]>
--- drivers/scsi/gdth.c | 2 -- 1 file changed, 2 deletions(-)
drivers/scsi/gdth.c +0 -2
@@ -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 ;
Signature · 1 line
2.16.2.dirty
PATCH 1/1 scsi: pmcraid: Remove set but not used 'res'
This addresses the following gcc warning with "make W=1":
drivers/scsi/pmcraid.c: In function ‘pmcraid_abort_cmd’:
drivers/scsi/pmcraid.c:2863:33: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
struct pmcraid_resource_entry *res;
^Reported-by Hulk Robot <[email protected]>
Signed-off-by Ye Bin <[email protected]>
--- drivers/scsi/pmcraid.c | 2 -- 1 file changed, 2 deletions(-)
drivers/scsi/pmcraid.c +0 -2
@@ -2860,10 +2860,8 @@ static struct pmcraid_cmd *pmcraid_abort_cmd(struct pmcraid_cmd *cmd) {struct pmcraid_cmd *cancel_cmd;struct pmcraid_instance *pinstance; -struct pmcraid_resource_entry *res; pinstance = (struct pmcraid_instance *)cmd->drv_inst; - res = cmd->scsi_cmd->device->hostdata; cancel_cmd =pmcraid_get_free_cmd (pinstance);
Signature · 1 line
2.16.2.dirty
Ye,
Quoted 1 line
This addresses the following gcc warning with "make W=1":
Applied your gdth, pmcraid, and lpfc fixes to the 5.10 SCSI staging tree. Thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering