wireless/bcm43xxx: correct the return value
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
78535d0123
commit
2eb1124db5
@ -647,7 +647,7 @@ static int bcmf_ifup(FAR struct net_driver_s *dev)
|
|||||||
FAR struct bcmf_dev_s *priv = (FAR struct bcmf_dev_s *)dev->d_private;
|
FAR struct bcmf_dev_s *priv = (FAR struct bcmf_dev_s *)dev->d_private;
|
||||||
irqstate_t flags;
|
irqstate_t flags;
|
||||||
uint32_t out_len;
|
uint32_t out_len;
|
||||||
int ret;
|
int ret = OK;
|
||||||
|
|
||||||
/* Disable the hardware interrupt */
|
/* Disable the hardware interrupt */
|
||||||
|
|
||||||
@ -726,7 +726,7 @@ errout_in_critical_section:
|
|||||||
|
|
||||||
leave_critical_section(flags);
|
leave_critical_section(flags);
|
||||||
|
|
||||||
return OK;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user