Skip to content

Commit 3bfb450

Browse files
leitaompe
authored andcommitted
powerpc/pci: Remove legacy debug code
Commit 59f47ef ("powerpc/pci: Use of_irq_parse_and_map_pci() helper") removed the 'oirq' variable, but kept memsetting it when the DEBUG macro is defined. When setting DEBUG macro for debugging purpose, the kernel fails to build since 'oirq' is not defined anymore. This patch simply remove the debug block, since it does not seem to sense now. Fixes: 59f47ef ("powerpc/pci: Use of_irq_parse_and_map_pci() helper") Signed-off-by: Breno Leitao <leitao@debian.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 8449a4c commit 3bfb450

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/powerpc/kernel/pci-common.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,6 @@ static int pci_read_irq_line(struct pci_dev *pci_dev)
366366

367367
pr_debug("PCI: Try to map irq for %s...\n", pci_name(pci_dev));
368368

369-
#ifdef DEBUG
370-
memset(&oirq, 0xff, sizeof(oirq));
371-
#endif
372369
/* Try to get a mapping from the device-tree */
373370
virq = of_irq_parse_and_map_pci(pci_dev, 0, 0);
374371
if (virq <= 0) {

0 commit comments

Comments
 (0)