diff options
author | Sanjeev Sharma <sanjeev_sharma@mentor.com> | 2015-02-03 08:32:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-04 22:55:24 +0100 |
commit | 75300ad2d91fac50852dc4123977d55e64c874cc (patch) | |
tree | d68379fdb39f9a22d78ef67d7991ff73bb26fbb6 /drivers | |
parent | net: usb: sr9700: Use 'SR_' prefix for the common register macros (diff) | |
download | linux-75300ad2d91fac50852dc4123977d55e64c874cc.tar.xz linux-75300ad2d91fac50852dc4123977d55e64c874cc.zip |
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.c | 2 |
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 */ |