aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-06-10 09:05:36 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-10 09:05:36 +0000
commit9206683f4bc211f1a962a7c174dc488081dff349 (patch)
tree81c06e31307a5b3b878b41c67f875317a5fa9501 /target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch
parent19c6fdf34a06948c189eb44108b0dd1b413a4a08 (diff)
downloadupstream-9206683f4bc211f1a962a7c174dc488081dff349.tar.gz
upstream-9206683f4bc211f1a962a7c174dc488081dff349.tar.bz2
upstream-9206683f4bc211f1a962a7c174dc488081dff349.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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41083 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch')
-rw-r--r--target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch12
1 files changed, 6 insertions, 6 deletions
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