SAM EMAC: Fix typo in the check for successfull allocation of a timer
This commit is contained in:
parent
7dd183fa50
commit
7ab214d811
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user