mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #14148 from mikaleppanen/nano_coverity_corr_master
Corrected nanostack coverity warningspull/14159/head
commit
4324d32d7c
|
|
@ -40,7 +40,7 @@ private:
|
||||||
EMAC &emac;
|
EMAC &emac;
|
||||||
uint8_t mac_addr[6];
|
uint8_t mac_addr[6];
|
||||||
int8_t device_id = -1;
|
int8_t device_id = -1;
|
||||||
phy_device_driver_s phy;
|
phy_device_driver_s phy = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
// GAH! no handles on the callback. Force a single interface
|
// GAH! no handles on the callback. Force a single interface
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ private:
|
||||||
bool active = false;
|
bool active = false;
|
||||||
bool powered_up = false;
|
bool powered_up = false;
|
||||||
int8_t device_id = -1;
|
int8_t device_id = -1;
|
||||||
phy_device_driver_s phy;
|
phy_device_driver_s phy = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
nsapi_error_t Nanostack::PPPInterface::initialize()
|
nsapi_error_t Nanostack::PPPInterface::initialize()
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,10 @@ uint32_t arm_random_seed_get(void)
|
||||||
uint32_t result = 0;
|
uint32_t result = 0;
|
||||||
#ifdef MBEDTLS_ENTROPY_HARDWARE_ALT
|
#ifdef MBEDTLS_ENTROPY_HARDWARE_ALT
|
||||||
#if defined(MBEDTLS_PLATFORM_C)
|
#if defined(MBEDTLS_PLATFORM_C)
|
||||||
mbedtls_platform_setup(NULL);
|
int ret = mbedtls_platform_setup(NULL);
|
||||||
|
if (ret != 0) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
#endif /* MBEDTLS_PLATFORM_C */
|
#endif /* MBEDTLS_PLATFORM_C */
|
||||||
/* Grab a seed from a function we provide for mbedtls */
|
/* Grab a seed from a function we provide for mbedtls */
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue