diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-02-14 04:51:52 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-02-20 02:58:34 +0300 |
commit | 59e54d9aabc411e7d8628622526f38fad4a19b28 (patch) | |
tree | ad2b4b266215e6044290d958ddb870718864544b /drivers/scsi | |
parent | 653fcb07d95eda58b72a5e715230b582c4d6d69e (diff) | |
download | linux-59e54d9aabc411e7d8628622526f38fad4a19b28.tar.xz |
scsi: lpfc: Remove set but not used variable 'phys_id'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_cpu_affinity_check':
drivers/scsi/lpfc/lpfc_init.c:10599:19: warning:
variable 'phys_id' set but not used [-Wunused-but-set-variable]
It never used since introduction in commit 6a828b0f6192 ("scsi: lpfc:
Support non-uniform allocation of MSIX vectors to hardware queues")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 2f1835de1e6a..3eb04c3be300 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -10597,7 +10597,7 @@ lpfc_find_hyper(struct lpfc_hba *phba, int cpu, static void lpfc_cpu_affinity_check(struct lpfc_hba *phba, int vectors) { - int i, cpu, idx, phys_id; + int i, cpu, idx; int max_phys_id, min_phys_id; int max_core_id, min_core_id; struct lpfc_vector_map_info *cpup; @@ -10615,7 +10615,6 @@ lpfc_cpu_affinity_check(struct lpfc_hba *phba, int vectors) min_phys_id = 0xffff; max_core_id = 0; min_core_id = 0xffff; - phys_id = 0; /* Update CPU map with physical id and core id of each CPU */ for_each_present_cpu(cpu) { |