Skip to content

Commit ff404a9

Browse files
Rickard Strandqvistpaulburton
authored andcommitted
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 <[email protected]> Patchwork: https://patchwork.linux-mips.org/patch/8867/ Signed-off-by: Paul Burton <[email protected]> Cc: John Crispin <[email protected]> Cc: [email protected] Cc: [email protected]
1 parent dd129c6 commit ff404a9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

arch/mips/pci/pci-ip27.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -214,17 +214,6 @@ static inline void pci_disable_swapping(struct pci_dev *dev)
214214
bridge->b_widget.w_tflush; /* Flush */
215215
}
216216

217-
static inline void pci_enable_swapping(struct pci_dev *dev)
218-
{
219-
struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus);
220-
bridge_t *bridge = bc->base;
221-
int slot = PCI_SLOT(dev->devfn);
222-
223-
/* Turn on byte swapping */
224-
bridge->b_device[slot].reg |= BRIDGE_DEV_SWAP_DIR;
225-
bridge->b_widget.w_tflush; /* Flush */
226-
}
227-
228217
static void pci_fixup_ioc3(struct pci_dev *d)
229218
{
230219
pci_disable_swapping(d);

0 commit comments

Comments
 (0)