Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sanjeev Sharma and committed by
David S. Miller
75300ad2 06b19b1b

+1 -1
+1 -1
drivers/net/ethernet/freescale/gianfar_ethtool.c
··· 1586 1586 return -EBUSY; 1587 1587 1588 1588 /* Fill regular entries */ 1589 - for (; i < MAX_FILER_IDX - 1 && (tab->fe[i].ctrl | tab->fe[i].ctrl); 1589 + for (; i < MAX_FILER_IDX - 1 && (tab->fe[i].ctrl | tab->fe[i].prop); 1590 1590 i++) 1591 1591 gfar_write_filer(priv, i, tab->fe[i].ctrl, tab->fe[i].prop); 1592 1592 /* Fill the rest with fall-troughs */