diff options
author | Fabien Chouteau <chouteau@adacore.com> | 2014-03-14 17:51:41 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-03-15 13:54:18 +0400 |
commit | 9c749e4dbe65e61e159ad822a4110167c2c108fe (patch) | |
tree | 13a8f0d82959e88d3735a12655516013bd652ac7 /hw/net | |
parent | 379e21c258d5faf0cd7c6f9208347726e14ae241 (diff) |
FSL eTSEC: Fix typo in rx ring
Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw/net')
-rw-r--r-- | hw/net/fsl_etsec/rings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/fsl_etsec/rings.c b/hw/net/fsl_etsec/rings.c index 26b71f6e81..e36cfbe76d 100644 --- a/hw/net/fsl_etsec/rings.c +++ b/hw/net/fsl_etsec/rings.c @@ -592,7 +592,7 @@ void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr) /* TODO: Broadcast and Multicast */ - if (bd.flags | BD_INTERRUPT) { + if (bd.flags & BD_INTERRUPT) { /* Set RXFx */ etsec->regs[RSTAT].value |= 1 << (7 - ring_nbr); @@ -601,7 +601,7 @@ void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr) } } else { - if (bd.flags | BD_INTERRUPT) { + if (bd.flags & BD_INTERRUPT) { /* Set IEVENT */ ievent_set(etsec, IEVENT_RXB); } |