summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSanjeev Sharma <sanjeev_sharma@mentor.com>2015-02-03 13:02:02 +0530
committerDavid S. Miller <davem@davemloft.net>2015-02-04 13:55:24 -0800
commit75300ad2d91fac50852dc4123977d55e64c874cc (patch)
treed68379fdb39f9a22d78ef67d7991ff73bb26fbb6 /drivers
parent06b19b1b178570b3d843306c636cdadb6e36c0a1 (diff)
gianfar: correct the bad expression while writing bit-pattern
This patch correct the bad expression while writing the bit-pattern from software's buffer to hardware registers. Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/freescale/gianfar_ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/gianfar_ethtool.c b/drivers/net/ethernet/freescale/gianfar_ethtool.c
index 3e1a9c1a67a9..fda12fb32ec7 100644
--- a/drivers/net/ethernet/freescale/gianfar_ethtool.c
+++ b/drivers/net/ethernet/freescale/gianfar_ethtool.c
@@ -1586,7 +1586,7 @@ static int gfar_write_filer_table(struct gfar_private *priv,
return -EBUSY;
/* Fill regular entries */
- for (; i < MAX_FILER_IDX - 1 && (tab->fe[i].ctrl | tab->fe[i].ctrl);
+ for (; i < MAX_FILER_IDX - 1 && (tab->fe[i].ctrl | tab->fe[i].prop);
i++)
gfar_write_filer(priv, i, tab->fe[i].ctrl, tab->fe[i].prop);
/* Fill the rest with fall-troughs */