arch: tiva: Fix lm3s_ethernet.c with DEBUGASSERT

Summary:
- This commit fixes DEBUGASSERT in lm3s_ethernet.c

Impact:
- lm3s_ethernet.c only

Testing:
- Tested with lm3s6965-ek:discover with QEMU

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2021-01-16 11:48:21 +09:00 committed by Abdelatif Guettouche
parent 75d3ae959f
commit 497e2f9e0c

View File

@ -641,7 +641,7 @@ static int tiva_txpoll(struct net_driver_s *dev)
ninfo("Poll result: d_len=%d\n", priv->ld_dev.d_len); ninfo("Poll result: d_len=%d\n", priv->ld_dev.d_len);
if (priv->ld_dev.d_len > 0) if (priv->ld_dev.d_len > 0)
{ {
DEBUGASSERT(!!(tiva_ethin(priv, TIVA_MAC_TR_OFFSET) & MAC_TR_NEWTX)); DEBUGASSERT(!(tiva_ethin(priv, TIVA_MAC_TR_OFFSET) & MAC_TR_NEWTX));
/* Look up the destination MAC address and add it to the Ethernet /* Look up the destination MAC address and add it to the Ethernet
* header. * header.