arch/arm/src/imxrt/imxrt_enet.c: Fix a warning about imxrt_calcethcrc() being defined, but not used.

This commit is contained in:
Gregory Nutt 2018-08-03 10:53:37 -06:00
parent 9574b0f29b
commit bfc8f9dfdb
2 changed files with 3 additions and 3 deletions

View File

@ -1471,8 +1471,8 @@ static int imxrt_txavail(struct net_driver_s *dev)
*
****************************************************************************/
#if defined(CONFIG_NET_IGMP) || defined(CONFIG_NET_ICMPv6)
static uint32_t imxrt_calcethcrc(const uint8_t *data, size_t length)
#ifdef CONFIG_NET_IGMP
static uint32_t imxrt_calcethcrc(const uint8_t *data, size_t length)
{
uint32_t crc = 0xFFFFFFFFU;
uint32_t count1 = 0;

View File

@ -788,7 +788,7 @@ static void sam_dfll_configure(const struct sam_dfll_config_s *config)
regval32 = getreg32(SAM_OSCCTRL_DFLLVAL);
}
/* Writing to the DFLLVAL will force it to re-syncrhonize */
/* Writing to the DFLLVAL will force it to re-synchronize */
putreg32(regval32, SAM_OSCCTRL_DFLLVAL);