From: Fabien Chouteau Date: Fri, 14 Mar 2014 16:51:41 +0000 (+0100) Subject: FSL eTSEC: Fix typo in rx ring X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9c749e4dbe65e61e159ad822a4110167c2c108fe;p=qemu.git FSL eTSEC: Fix typo in rx ring Signed-off-by: Fabien Chouteau Signed-off-by: Michael Tokarev --- 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); }