[riot-notifications] [RIOT-OS/RIOT] tools/ci: fix remaining errors reported by coccinelle static check (#12281)

Kaspar Schleiser notifications at github.com
Fri Sep 20 11:17:56 CEST 2019


kaspar030 commented on this pull request.



> @@ -183,9 +183,7 @@ static bool _send_wa(gnrc_netif_t *netif)
     /* Send WA */
     if (_gnrc_lwmac_transmit(netif, pkt) < 0) {
         LOG_ERROR("ERROR: [LWMAC-rx] Send WA failed.");
-        if (pkt != NULL) {
-            gnrc_pktbuf_release(pkt);
-        }
+        gnrc_pktbuf_release(pkt);

The variable is not changed after L161, the address of ptr doesn't escape. pkt cannot be NU:: in lin 186.

-- 
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/12281#discussion_r326541470
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190920/30a2bda1/attachment.htm>


More information about the notifications mailing list