[riot-notifications] [RIOT-OS/RIOT] cc2420/gnrc_netif: Adds crc_valid to netif (#8276)

Peter Kietzmann notifications at github.com
Thu Jul 25 14:32:14 CEST 2019


PeterKietzmann commented on this pull request.



> @@ -90,7 +90,7 @@ static inline bool _already_received(gnrc_netif_t *netif,
 static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif)
 {
     netdev_t *dev = netif->dev;
-    netdev_ieee802154_rx_info_t rx_info;
+    netdev_ieee802154_rx_info_t rx_info = { .crc_valid = 0 };

> The initialization as used above does this implicitly

So you are saying that `netdev_ieee802154_rx_info_t rx_info = { .crc_valid = 0 };` initializes the whole structure with `0`? (And I'm not talking about some smart compiler things going on in the background)

-- 
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/8276#discussion_r307270410
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190725/66d5fe85/attachment-0001.htm>


More information about the notifications mailing list