Commit 75300ad2 authored by Sanjeev Sharma's avatar Sanjeev Sharma Committed by David S. Miller

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: default avatarSanjeev Sharma <Sanjeev_Sharma@mentor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 06b19b1b
...@@ -1586,7 +1586,7 @@ static int gfar_write_filer_table(struct gfar_private *priv, ...@@ -1586,7 +1586,7 @@ static int gfar_write_filer_table(struct gfar_private *priv,
return -EBUSY; return -EBUSY;
/* Fill regular entries */ /* 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++) i++)
gfar_write_filer(priv, i, tab->fe[i].ctrl, tab->fe[i].prop); gfar_write_filer(priv, i, tab->fe[i].ctrl, tab->fe[i].prop);
/* Fill the rest with fall-troughs */ /* Fill the rest with fall-troughs */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment