mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
netdev2_ieee802154: Fix dead assignment
This commit is contained in:
parent
0fd85f982d
commit
64f1515a38
@ -165,6 +165,7 @@ int netdev_ieee802154_set(netdev_ieee802154_t *dev, netopt_t opt, void *value,
|
|||||||
case NETOPT_ADDR_LEN:
|
case NETOPT_ADDR_LEN:
|
||||||
case NETOPT_SRC_LEN:
|
case NETOPT_SRC_LEN:
|
||||||
assert(len == sizeof(uint16_t));
|
assert(len == sizeof(uint16_t));
|
||||||
|
res = sizeof(uint16_t);
|
||||||
switch ((*(uint16_t *)value)) {
|
switch ((*(uint16_t *)value)) {
|
||||||
case IEEE802154_SHORT_ADDRESS_LEN:
|
case IEEE802154_SHORT_ADDRESS_LEN:
|
||||||
dev->flags &= ~NETDEV_IEEE802154_SRC_MODE_LONG;
|
dev->flags &= ~NETDEV_IEEE802154_SRC_MODE_LONG;
|
||||||
@ -176,7 +177,6 @@ int netdev_ieee802154_set(netdev_ieee802154_t *dev, netopt_t opt, void *value,
|
|||||||
res = -EAFNOSUPPORT;
|
res = -EAFNOSUPPORT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
res = sizeof(uint16_t);
|
|
||||||
break;
|
break;
|
||||||
case NETOPT_NID:
|
case NETOPT_NID:
|
||||||
assert(len == sizeof(dev->pan));
|
assert(len == sizeof(dev->pan));
|
||||||
|
Loading…
Reference in New Issue
Block a user