mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 21:54:06 +08:00
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>
This commit is contained in:
parent
06b19b1b17
commit
75300ad2d9
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user