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

Martine Lenders notifications at github.com
Fri Sep 20 14:20:52 CEST 2019


miri64 commented on this pull request.



> @@ -217,9 +217,7 @@ static uint8_t _send_wr(gnrc_netif_t *netif)
     int res = _gnrc_lwmac_transmit(netif, pkt);
     if (res < 0) {
         LOG_ERROR("ERROR: [LWMAC-tx] Send WR failed.");
-        if (pkt != NULL) {
-            gnrc_pktbuf_release(pkt);
-        }
+        gnrc_pktbuf_release(pkt);

Same here.

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


More information about the notifications mailing list