All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] FSL eTSEC: Fix typo in rx ring
@ 2014-03-14 16:51 ` Fabien Chouteau
  0 siblings, 0 replies; 6+ messages in thread
From: Fabien Chouteau @ 2014-03-14 16:51 UTC (permalink / raw)
  To: qemu-devel, qemu-trivial; +Cc: peter.maydell, agraf, pbonzini


Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
---
 hw/net/fsl_etsec/rings.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/net/fsl_etsec/rings.c b/hw/net/fsl_etsec/rings.c
index 7760272..31e6f58 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);
                 }
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-03-17 17:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-14 16:51 [Qemu-trivial] [PATCH] FSL eTSEC: Fix typo in rx ring Fabien Chouteau
2014-03-14 16:51 ` [Qemu-devel] " Fabien Chouteau
2014-03-14 17:35 ` [Qemu-trivial] " Michael Tokarev
2014-03-14 17:35   ` [Qemu-devel] " Michael Tokarev
2014-03-17 17:08   ` Fabien Chouteau
2014-03-17 17:08     ` [Qemu-devel] " Fabien Chouteau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.