mirror of
https://github.com/espressif/openthread.git
synced 2026-10-02 05:47:40 +00:00
[mac] remove unnecessary value store (#6974)
To remove compiler warning: Value stored to 'caps' during its initialization is never read
This commit is contained in:
@@ -85,9 +85,10 @@ SubMac::SubMac(Instance &aInstance)
|
|||||||
|
|
||||||
otRadioCaps SubMac::GetCaps(void) const
|
otRadioCaps SubMac::GetCaps(void) const
|
||||||
{
|
{
|
||||||
otRadioCaps caps = mRadioCaps;
|
otRadioCaps caps;
|
||||||
|
|
||||||
#if OPENTHREAD_RADIO || OPENTHREAD_CONFIG_LINK_RAW_ENABLE
|
#if OPENTHREAD_RADIO || OPENTHREAD_CONFIG_LINK_RAW_ENABLE
|
||||||
|
caps = mRadioCaps;
|
||||||
|
|
||||||
#if OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE
|
#if OPENTHREAD_CONFIG_MAC_SOFTWARE_ACK_TIMEOUT_ENABLE
|
||||||
caps |= OT_RADIO_CAPS_ACK_TIMEOUT;
|
caps |= OT_RADIO_CAPS_ACK_TIMEOUT;
|
||||||
|
|||||||
Reference in New Issue
Block a user