diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:05:36 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-10 09:05:36 +0000 |
commit | 5427e47e59272c7e11554b1c654a997173c7f941 (patch) | |
tree | c6637514d3c61d188bb8cfde69a6aad9b46dd499 /target/linux | |
parent | 630eac6638a0a351226258b894dd7cb65e8bb979 (diff) | |
download | upstream-5427e47e59272c7e11554b1c654a997173c7f941.tar.gz upstream-5427e47e59272c7e11554b1c654a997173c7f941.tar.bz2 upstream-5427e47e59272c7e11554b1c654a997173c7f941.zip |
atheros: remove parentheses around return values
Remove parentheses around return values since return is no a function,
as suggested by checkpatch.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 41083
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/atheros/patches-3.10/100-board.patch | 2 | ||||
-rw-r--r-- | target/linux/atheros/patches-3.10/105-ar2315_pci.patch | 2 | ||||
-rw-r--r-- | target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/target/linux/atheros/patches-3.10/100-board.patch b/target/linux/atheros/patches-3.10/100-board.patch index 4f7b07255c..0bd3410e38 100644 --- a/target/linux/atheros/patches-3.10/100-board.patch +++ b/target/linux/atheros/patches-3.10/100-board.patch @@ -661,7 +661,7 @@ + +/* Returns gpio for IRQ attached. Unchecked function */ +static inline int irq_to_gpio(unsigned irq) { -+ return (irq - (AR531X_GPIO_IRQ(0))); ++ return irq - AR531X_GPIO_IRQ(0); +} + +#include <asm-generic/gpio.h> /* cansleep wrappers */ diff --git a/target/linux/atheros/patches-3.10/105-ar2315_pci.patch b/target/linux/atheros/patches-3.10/105-ar2315_pci.patch index 7c72a8e417..3e5184803e 100644 --- a/target/linux/atheros/patches-3.10/105-ar2315_pci.patch +++ b/target/linux/atheros/patches-3.10/105-ar2315_pci.patch @@ -95,7 +95,7 @@ + ar231x_mask_reg(AR2315_PCI_MISC_CONFIG, AR2315_PCIMISC_CFG_SEL, 0); + local_irq_restore(flags); + -+ return (err ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL); ++ return err ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; +} + +static int ar231x_pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * value) diff --git a/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch b/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch index e3773e3ade..b9a56b7ac5 100644 --- a/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch +++ b/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch @@ -262,7 +262,7 @@ + ioremap_nocache(virt_to_phys(ar_eth_base), sizeof(*sp->eth_regs)); + if (!sp->eth_regs) { + printk("Can't remap eth registers\n"); -+ return (-ENXIO); ++ return -ENXIO; + } + + /** @@ -278,7 +278,7 @@ + sizeof(*sp->phy_regs)); + if (!sp->phy_regs) { + printk("Can't remap phy registers\n"); -+ return (-ENXIO); ++ return -ENXIO; + } + } + @@ -288,13 +288,13 @@ + dev->base_addr = (unsigned int) sp->dma_regs; + if (!sp->dma_regs) { + printk("Can't remap DMA registers\n"); -+ return (-ENXIO); ++ return -ENXIO; + } + + sp->int_regs = ioremap_nocache(virt_to_phys(sp->cfg->reset_base), 4); + if (!sp->int_regs) { + printk("Can't remap INTERRUPT registers\n"); -+ return (-ENXIO); ++ return -ENXIO; + } + + strncpy(sp->name, "Atheros AR231x", sizeof(sp->name) - 1); @@ -667,7 +667,7 @@ + + mdelay(10); + -+ return (0); ++ return 0; +} + + @@ -1218,7 +1218,7 @@ + + ethernet->mii_addr = MII_ADDR(phy_addr, regnum); + while (ethernet->mii_addr & MII_ADDR_BUSY); -+ return (ethernet->mii_data >> MII_DATA_SHIFT); ++ return ethernet->mii_data >> MII_DATA_SHIFT; +} + +static int |