mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
arch/arm/src/samv7/sam_emac.c: fix compile warning
The following warning occurred if ARCH_CHIP_PIC32CZCA70 option was
selected. The variable is not used in case of PIC32CZ CA70 series.
CC: task/task_getgroup.c chip/sam_emac.c: In function ‘sam_emac_initialize’:
chip/sam_emac.c:4758:12: warning: unused variable ‘regval’ [-Wunused-variable]
4758 | uint32_t regval;
|
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
committed by
Mateusz Szafoni
parent
5c7c7f8ca3
commit
47cd5ba279
@@ -4755,7 +4755,9 @@ int sam_emac_initialize(int intf)
|
|||||||
{
|
{
|
||||||
struct sam_emac_s *priv;
|
struct sam_emac_s *priv;
|
||||||
const struct sam_emacattr_s *attr;
|
const struct sam_emacattr_s *attr;
|
||||||
|
#ifndef CONFIG_ARCH_CHIP_PIC32CZCA70
|
||||||
uint32_t regval;
|
uint32_t regval;
|
||||||
|
#endif
|
||||||
uint8_t *pktbuf;
|
uint8_t *pktbuf;
|
||||||
#if defined(CONFIG_NETDEV_PHY_IOCTL) && defined(CONFIG_ARCH_PHY_INTERRUPT)
|
#if defined(CONFIG_NETDEV_PHY_IOCTL) && defined(CONFIG_ARCH_PHY_INTERRUPT)
|
||||||
uint8_t phytype;
|
uint8_t phytype;
|
||||||
|
|||||||
Reference in New Issue
Block a user