diff options
| author | Ye Bin <[email protected]> | 2020-09-09 08:26:27 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-09-10 02:40:41 +0000 |
| commit | 27216a9d85a0be1cf6e58b64c1cb626a6170c8f3 (patch) | |
| tree | 42fc00c20dfd45d84f8e64a108b3140e94b993fe /drivers/scsi/pmcraid.c | |
| parent | scsi: qla1280: Remove set but not used variable in qla1280_status_entry() (diff) | |
| download | kernel-27216a9d85a0be1cf6e58b64c1cb626a6170c8f3.tar.gz kernel-27216a9d85a0be1cf6e58b64c1cb626a6170c8f3.zip | |
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;
^
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Ye Bin <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/pmcraid.c')
| -rw-r--r-- | drivers/scsi/pmcraid.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index d99568fdf4af..cbe5fab793eb 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c @@ -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); |
