Root/target/linux/ar71xx/patches-3.3/107-MIPS-ath79-remove-superfluous-alignment-checks-from-.patch

1From e9889bee75d03338daf7ed422661ae28f3aa7063 Mon Sep 17 00:00:00 2001
2From: Gabor Juhos <juhosg@openwrt.org>
3Date: Wed, 14 Mar 2012 10:36:03 +0100
4Subject: [PATCH 12/47] MIPS: ath79: remove superfluous alignment checks from pci-ar724x.c
5
6The alignment of the 'where' parameters are checked
7in the core PCI code already.
8
9Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
10Cc: linux-mips@linux-mips.org
11Patchwork: https://patchwork.linux-mips.org/patch/3492/
12Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
13---
14 arch/mips/pci/pci-ar724x.c | 6 ------
15 1 files changed, 0 insertions(+), 6 deletions(-)
16
17--- a/arch/mips/pci/pci-ar724x.c
18+++ b/arch/mips/pci/pci-ar724x.c
19@@ -28,9 +28,6 @@ static int ar724x_pci_read(struct pci_bu
20     if (devfn)
21         return PCIBIOS_DEVICE_NOT_FOUND;
22 
23- if (where & (size - 1))
24- return PCIBIOS_BAD_REGISTER_NUMBER;
25-
26     base = ar724x_pci_devcfg_base;
27 
28     spin_lock_irqsave(&ar724x_pci_lock, flags);
29@@ -73,9 +70,6 @@ static int ar724x_pci_write(struct pci_b
30     if (devfn)
31         return PCIBIOS_DEVICE_NOT_FOUND;
32 
33- if (where & (size - 1))
34- return PCIBIOS_BAD_REGISTER_NUMBER;
35-
36     base = ar724x_pci_devcfg_base;
37 
38     spin_lock_irqsave(&ar724x_pci_lock, flags);
39

Archive Download this file



interactive