lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #46594] Useless condition judegement


From: April M
Subject: [lwip-devel] [bug #46594] Useless condition judegement
Date: Thu, 03 Dec 2015 05:24:38 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36

URL:
  <http://savannah.nongnu.org/bugs/?46594>

                 Summary: Useless condition judegement
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: april_m
            Submitted on: Thu Dec  3 05:24:37 2015
                Category: Network drivers
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

In netif.c netif_loop_outpu() Line 725
if (((netif->loop_cnt_current + clen) < netif->loop_cnt_current) ||

Since netif->loop_cnt_current is u16_t and clen is u8_t,
(netif->loop_cnt_current + clen) will always be larger than or equal to
netif->loop_cnt_current, which makes the condition judegement uselsss for it
will always return false.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?46594>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]