diff options
| author | YueHaibing <yuehaibing@huawei.com> | 2018-09-13 21:38:56 -0400 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-09-17 02:26:15 -0400 |
| commit | fdd0a66b7af4e49c068e3d5960b90090db955776 (patch) | |
| tree | 456ce636370a5185ea2e45c8fbca0989da06d5b7 | |
| parent | 78d85f31519cbfa6e96252292fe7b464593cded5 (diff) | |
scsi: pm80xx: Remove set but not used variable 'page_code'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/scsi/pm8001/pm80xx_hwi.c: In function 'pm8001_set_phy_profile':
drivers/scsi/pm8001/pm80xx_hwi.c:4679:6: warning:
variable 'page_code' set but not used [-Wunused-but-set-variable]
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Jack Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
| -rw-r--r-- | drivers/scsi/pm8001/pm80xx_hwi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c index b641875b8ad7..9864a3c7547b 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c | |||
| @@ -4676,9 +4676,8 @@ void mpi_set_phy_profile_req(struct pm8001_hba_info *pm8001_ha, | |||
| 4676 | void pm8001_set_phy_profile(struct pm8001_hba_info *pm8001_ha, | 4676 | void pm8001_set_phy_profile(struct pm8001_hba_info *pm8001_ha, |
| 4677 | u32 length, u8 *buf) | 4677 | u32 length, u8 *buf) |
| 4678 | { | 4678 | { |
| 4679 | u32 page_code, i; | 4679 | u32 i; |
| 4680 | 4680 | ||
| 4681 | page_code = SAS_PHY_ANALOG_SETTINGS_PAGE; | ||
| 4682 | for (i = 0; i < pm8001_ha->chip->n_phy; i++) { | 4681 | for (i = 0; i < pm8001_ha->chip->n_phy; i++) { |
| 4683 | mpi_set_phy_profile_req(pm8001_ha, | 4682 | mpi_set_phy_profile_req(pm8001_ha, |
| 4684 | SAS_PHY_ANALOG_SETTINGS_PAGE, i, length, (u32 *)buf); | 4683 | SAS_PHY_ANALOG_SETTINGS_PAGE, i, length, (u32 *)buf); |
