Skip to content

Commit

Permalink
drivers/cc110x: cleanup + remove gnrc_netdev leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
aabadie committed Nov 28, 2017
1 parent 5ffe9dd commit 13e0239
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 49 deletions.
7 changes: 3 additions & 4 deletions drivers/cc110x/gnrc_cc110x/gnrc_cc110x.c
Expand Up @@ -136,7 +136,7 @@ static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif)
payload_length, nettype);

if(!pkt) {
DEBUG("cc110x: _recv: cannot allocate pktsnip.\n");
DEBUG("gnrc_cc110x: _recv: cannot allocate pktsnip.\n");
return NULL;
}

Expand All @@ -147,7 +147,7 @@ static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif)
GNRC_NETTYPE_NETIF);

if (netif_hdr == NULL) {
DEBUG("gnrc_netdev_cc110x: no space left in packet buffer\n");
DEBUG("gnrc_cc110x: no space left in packet buffer\n");
gnrc_pktbuf_release(pkt);
return NULL;
}
Expand All @@ -168,8 +168,7 @@ static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif)
((gnrc_netif_hdr_t *)netif_hdr->data)->lqi = cc110x->pkt_buf.lqi;
((gnrc_netif_hdr_t *)netif_hdr->data)->rssi = cc110x->pkt_buf.rssi;

DEBUG("gnrc_netdev_cc110x: received packet from %02x"
" of length %u\n",
DEBUG("gnrc_cc110x: received packet from %02x of length %u\n",
(unsigned)cc110x_pkt->phy_src,
(unsigned)cc110x_pkt->length-CC110X_HEADER_LENGTH);
#if defined(MODULE_OD) && ENABLE_DEBUG
Expand Down
45 changes: 0 additions & 45 deletions drivers/cc110x/include/gnrc_netdev_cc110x.h

This file was deleted.

0 comments on commit 13e0239

Please sign in to comment.