Commit 59e54d9a authored by YueHaibing's avatar YueHaibing Committed by Martin K. Petersen
Browse files

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 6a828b0f ("scsi: lpfc:
Support non-uniform allocation of MSIX vectors to hardware queues")

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarJames Smart <james.smart@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 653fcb07
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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) {