|
From: | Axel Lin |
Subject: | [lwip-devel] [patch #9538] netif: Remove unnecessary NULL checking in netif_do_set_{ipaddr|netmask|gw} |
Date: | Tue, 9 Jan 2018 02:10:28 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 |
URL: <http://savannah.nongnu.org/patch/?9538> Summary: netif: Remove unnecessary NULL checking in netif_do_set_{ipaddr|netmask|gw} Project: lwIP - A Lightweight TCP/IP stack Submitted by: axellin Submitted on: Tue 09 Jan 2018 07:10:27 AM UTC Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Details: The callers already ensure the ipaddr/netmask/gw won't be NULL, so remove the duplicated NULL checking in these static functions. While at it, also move the code saving old_address for netmask/gw as it's only used when address is actually being changed. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Tue 09 Jan 2018 07:10:27 AM UTC Name: 0001-netif-Remove-unnecessary-NULL-checking-in-netif_do_s.patch Size: 3KiB By: axellin <http://savannah.nongnu.org/patch/download.php?file_id=42873> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?9538> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |