You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2021/01/16 09:40:28 UTC

[incubator-nuttx] branch master updated: arch: tiva: Fix lm3s_ethernet.c with DEBUGASSERT

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 497e2f9  arch: tiva: Fix lm3s_ethernet.c with DEBUGASSERT
497e2f9 is described below

commit 497e2f9e0c1536c9b120d8aae2d0c08d47a3ba1d
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Sat Jan 16 11:48:21 2021 +0900

    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 <Ma...@jp.sony.com>
---
 arch/arm/src/tiva/lm/lm3s_ethernet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/src/tiva/lm/lm3s_ethernet.c b/arch/arm/src/tiva/lm/lm3s_ethernet.c
index dde9eaa..8453173 100644
--- a/arch/arm/src/tiva/lm/lm3s_ethernet.c
+++ b/arch/arm/src/tiva/lm/lm3s_ethernet.c
@@ -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);
   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
        * header.