1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00

Merge pull request #6247 from smlng/pr/cpu/cc2538/fix_cppcheck

cppcheck: cpu/cc2538 reduce scope of variables
This commit is contained in:
Lucas Jenß 2016-12-20 21:11:32 +01:00 committed by GitHub
commit 35c42209db

View File

@ -295,8 +295,6 @@ static int _send(netdev2_t *netdev, const struct iovec *vector, unsigned count)
static int _recv(netdev2_t *netdev, void *buf, size_t len, void *info)
{
uint8_t corr_val;
int8_t rssi_val;
size_t pkt_len;
if (buf == NULL) {
@ -335,6 +333,8 @@ static int _recv(netdev2_t *netdev, void *buf, size_t len, void *info)
rfcore_read_fifo(buf, pkt_len);
if (info != NULL && RFCORE->XREG_RSSISTATbits.RSSI_VALID) {
uint8_t corr_val;
int8_t rssi_val;
netdev2_ieee802154_rx_info_t *radio_info = info;
rssi_val = rfcore_read_byte() + CC2538_RSSI_OFFSET;