Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37f1c586 authored by YueHaibing's avatar YueHaibing Committed by Bjorn Helgaas
Browse files

PCI: cpqphp: Remove set but not used variable 'physical_slot'



Fixes gcc '-Wunused-but-set-variable' warning:

  drivers/pci/hotplug/cpqphp_core.c: In function 'init_SERR':
  drivers/pci/hotplug/cpqphp_core.c:124:5: warning: variable 'physical_slot' set but not used [-Wunused-but-set-variable]

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 479e01a4
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -121,7 +121,6 @@ static int init_SERR(struct controller *ctrl)
{
	u32 tempdword;
	u32 number_of_slots;
	u8 physical_slot;

	if (!ctrl)
		return 1;
@@ -131,7 +130,6 @@ static int init_SERR(struct controller *ctrl)
	number_of_slots = readb(ctrl->hpc_reg + SLOT_MASK) & 0x0F;
	/* Loop through slots */
	while (number_of_slots) {
		physical_slot = tempdword;
		writeb(0, ctrl->hpc_reg + SLOT_SERR);
		tempdword++;
		number_of_slots--;