[riot-notifications] [RIOT-OS/RIOT] gnrc_netreg: some optimisations (#8517)

Martine Lenders notifications at github.com
Tue Feb 6 09:46:43 CET 2018


miri64 commented on this pull request.



> @@ -367,7 +367,7 @@ int _tftp_init_ctxt(ipv6_addr_t *addr, const char *file_name,
     /* generate a random source UDP source port */
     do {
         ctxt->src_port = (random_uint32() & 0xff) + GNRC_TFTP_DEFAULT_SRC_PORT;
-    } while (gnrc_netreg_num(GNRC_NETTYPE_UDP, ctxt->src_port));

I thought it wasn't used ;-)

-- 
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/8517#pullrequestreview-94261088
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20180206/5f2c48a9/attachment.html>


More information about the notifications mailing list