From: Rickard Strandqvist Date: Thu, 1 Jan 2015 15:32:06 +0000 (+0100) Subject: arch: mips: pci: pci-ip27.c: Remove unused function X-Git-Tag: v5.15~8132^2~84 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff404a936a958a45e3969730e065ea2886acc5e8;p=platform%2Fkernel%2Flinux-starfive.git arch: mips: pci: pci-ip27.c: Remove unused function Remove the function pci_enable_swapping() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist Patchwork: https://patchwork.linux-mips.org/patch/8867/ Signed-off-by: Paul Burton Cc: John Crispin Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org --- diff --git a/arch/mips/pci/pci-ip27.c b/arch/mips/pci/pci-ip27.c index 65b48d4..c94a660 100644 --- a/arch/mips/pci/pci-ip27.c +++ b/arch/mips/pci/pci-ip27.c @@ -214,17 +214,6 @@ static inline void pci_disable_swapping(struct pci_dev *dev) bridge->b_widget.w_tflush; /* Flush */ } -static inline void pci_enable_swapping(struct pci_dev *dev) -{ - struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus); - bridge_t *bridge = bc->base; - int slot = PCI_SLOT(dev->devfn); - - /* Turn on byte swapping */ - bridge->b_device[slot].reg |= BRIDGE_DEV_SWAP_DIR; - bridge->b_widget.w_tflush; /* Flush */ -} - static void pci_fixup_ioc3(struct pci_dev *d) { pci_disable_swapping(d);