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:40 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-06-10 09:05:40 +0000
commit3406e402ef24a3b1fc736ca1a4b0fd99259e61a9 (patch)
tree65a92a499513c41f6eae7a2952a01a0dc00ac5c7 /target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch
parent5427e47e59272c7e11554b1c654a997173c7f941 (diff)
downloadupstream-3406e402ef24a3b1fc736ca1a4b0fd99259e61a9.tar.gz
upstream-3406e402ef24a3b1fc736ca1a4b0fd99259e61a9.tar.bz2
upstream-3406e402ef24a3b1fc736ca1a4b0fd99259e61a9.zip
atheros: do not assignment in if condition
Remove assignments from if conditions as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 41084
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.patch5
1 files changed, 3 insertions, 2 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 b9a56b7ac5..38b29691bf 100644
--- a/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch
+++ b/target/linux/atheros/patches-3.10/110-ar2313_ethernet.patch
@@ -32,7 +32,7 @@
+obj-$(CONFIG_NET_VENDOR_AR231X) += ar231x.o
--- /dev/null
+++ b/drivers/net/ethernet/ar231x/ar231x.c
-@@ -0,0 +1,1265 @@
+@@ -0,0 +1,1266 @@
+/*
+ * ar231x.c: Linux driver for the Atheros AR231x Ethernet device.
+ *
@@ -905,8 +905,9 @@
+
+ while (idx != sp->tx_prd) {
+ txdesc = &sp->tx_ring[idx];
++ status = txdesc->status;
+
-+ if ((status = txdesc->status) & DMA_TX_OWN) {
++ if (status & DMA_TX_OWN) {
+ /* ar231x dma still owns descr */
+ break;
+ }