|
From: | Axel Lin |
Subject: | [lwip-devel] [patch #8822] Remove unnecessary p->len checking for pbuf_alloc calls with PBUF_RAM type |
Date: | Sat, 05 Dec 2015 16:13:31 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 |
URL: <http://savannah.nongnu.org/patch/?8822> Summary: Remove unnecessary p->len checking for pbuf_alloc calls with PBUF_RAM type Project: lwIP - A Lightweight TCP/IP stack Submitted by: axellin Submitted on: Sat 05 Dec 2015 04:13:30 PM GMT Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Details: 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. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Sat 05 Dec 2015 04:13:30 PM GMT Name: 0001-Remove-unnecessary-p-len-checking-for-pbuf_alloc-cal.patch Size: 3kB By: axellin <http://savannah.nongnu.org/patch/download.php?file_id=35648> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?8822> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |