summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/sama5/sam_emaca.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-18 14:20:31 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-18 14:20:31 -0600
commit36429f153857ff9c2f148411d4e45ddfb4d43e18 (patch)
tree5f58f2154f5448f3186823de113e327c2332c0a7 /nuttx/arch/arm/src/sama5/sam_emaca.c
parent99fcd931e29042c7a532674ff99c76daf3d3f68b (diff)
downloadpx4-nuttx-36429f153857ff9c2f148411d4e45ddfb4d43e18.tar.gz
px4-nuttx-36429f153857ff9c2f148411d4e45ddfb4d43e18.tar.bz2
px4-nuttx-36429f153857ff9c2f148411d4e45ddfb4d43e18.zip
SAM EMAC: Fix typo in the check for successfull allocation of a timer
Diffstat (limited to 'nuttx/arch/arm/src/sama5/sam_emaca.c')
-rw-r--r--nuttx/arch/arm/src/sama5/sam_emaca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/sama5/sam_emaca.c b/nuttx/arch/arm/src/sama5/sam_emaca.c
index c6fbe1661..9fc65c2c0 100644
--- a/nuttx/arch/arm/src/sama5/sam_emaca.c
+++ b/nuttx/arch/arm/src/sama5/sam_emaca.c
@@ -3111,7 +3111,7 @@ int sam_emac_initialize(void)
}
priv->txtimeout = wd_create(); /* Create TX timeout timer */
- if (!priv->txpoll)
+ if (!priv->txtimeout)
{
ndbg("ERROR: Failed to create periodic poll timer\n");
ret = -EAGAIN;