mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Check return from nxsem_wait_uninterruptible
This commit is only for those files under drivers/1wire, drivers/bch, drivers/can and drivers/mmcsd.
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
* Name: bch_semtake
|
||||
****************************************************************************/
|
||||
|
||||
void bchlib_semtake(FAR struct bchlib_s *bch)
|
||||
int bchlib_semtake(FAR struct bchlib_s *bch)
|
||||
{
|
||||
nxsem_wait_uninterruptible(&bch->sem);
|
||||
return nxsem_wait(&bch->sem);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user