Skip to contentSkip to conversation

xtensa/PCI: Remove unused variable

PATCH Applied Guenter Roeck 2 participants 2 messages Jun 16, 2019 – Jun 17, 2019 Tensilica Xtensa port (xtensa)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xtensa/PCI: Remove unused variable

gcc reports:

arch/xtensa/kernel/pci.c:40:32: warning:
'pci_ctrl_tail' defined but not used

which is indeed the case.

---
 arch/xtensa/kernel/pci.c | 1 -
 1 file changed, 1 deletion(-)
arch/xtensa/kernel/pci.c +0 -1
index 8b823f94e568..e0235e34e1ba 100644
@@ -37,7 +37,6 @@
  */
 
 static struct pci_controller *pci_ctrl_head;
-static struct pci_controller **pci_ctrl_tail = &pci_ctrl_head;
 
 static int pci_bus_count;
 
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 6 lines · Guenter Roeck

gcc reports:

arch/xtensa/kernel/pci.c:40:32: warning:
'pci_ctrl_tail' defined but not used

Quoted 6 lines

which is indeed the case.

---
 arch/xtensa/kernel/pci.c | 1 -
 1 file changed, 1 deletion(-)

Applied to my xtensa tree.

Signature · 2 lines
Thanks.
-- Max