patchlwIP - A Lightweight TCP/IP stack - Patches: patch #8822, Remove unnecessary p->len...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #8822: Remove unnecessary p->len checking for pbuf_alloc calls with PBUF_RAM type

Submitter:  Axel Lin <axellin>
Submitted:  Sat 05 Dec 2015 04:13:30 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Planned Release:  None

Sat 05 Dec 2015 04:13:30 PM UTC, original submission:  

pbuf_alloc() for PBUF_RAM type always return big enough memory on success.
So checking p->len is not necessary. Testing if p is NULL or not is enough.

Axel Lin <axellin>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dziegel (Updated the item)
  • -email is unavailable- added by axellin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-05 dziegel StatusNone Done
        Open/ClosedOpen Closed
    2015-12-05 axellin Attached File- Added 0001-Remove-unnecessary-p-len-checking-for-pbuf_alloc-cal.patch, #35648

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code