[riot-notifications] [RIOT-OS/RIOT] sx127x: ignore empty iolist element (#11215)

Martine Lenders notifications at github.com
Tue Mar 26 17:15:44 CET 2019


miri64 commented on this pull request.



> @@ -54,6 +54,11 @@ static int _send(netdev_t *netdev, const iolist_t *iolist)
 
     uint8_t size = iolist_size(iolist);
 
+    /* Ignore send if packet size is 0 */
+    if (size == 0) {
+        return 0;
+    }

Is this check really required?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11215#pullrequestreview-219004626
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190326/36039326/attachment-0001.html>


More information about the notifications mailing list