SAM EMAC: Fix typo in the check for successfull allocation of a timer

This commit is contained in:
Gregory Nutt 2014-11-18 14:20:31 -06:00
parent 7dd183fa50
commit 7ab214d811
4 changed files with 4 additions and 4 deletions

View File

@ -3063,7 +3063,7 @@ void up_netinitialize(void)
}
priv->txtimeout = wd_create(); /* Create TX timeout timer */
if (!priv->txpoll)
if (!priv->txtimeout)
{
nlldbg("ERROR: Failed to create periodic poll timer\n");
goto errout_with_txpoll;

View File

@ -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;

View File

@ -3810,7 +3810,7 @@ int sam_emac_initialize(int intf)
}
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;

View File

@ -3183,7 +3183,7 @@ int sam_gmac_initialize(void)
}
priv->txtimeout = wd_create(); /* Create TX timeout timer */
if (!priv->txpoll)
if (!priv->txtimeout)
{
nlldbg("ERROR: Failed to create periodic poll timer\n");
ret = -EAGAIN;