mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
wireless/ieee802154: rename label pointed to exit with mutex held
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
f952b8456c
commit
a8f4d8447f
@@ -274,7 +274,7 @@ static int mac802154dev_close(FAR struct file *filep)
|
|||||||
{
|
{
|
||||||
wlerr("ERROR: Failed to find open entry\n");
|
wlerr("ERROR: Failed to find open entry\n");
|
||||||
ret = -ENOENT;
|
ret = -ENOENT;
|
||||||
goto errout_with_exclsem;
|
goto errout_with_lock;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Remove the structure from the device */
|
/* Remove the structure from the device */
|
||||||
@@ -315,7 +315,7 @@ static int mac802154dev_close(FAR struct file *filep)
|
|||||||
|
|
||||||
ret = OK;
|
ret = OK;
|
||||||
|
|
||||||
errout_with_exclsem:
|
errout_with_lock:
|
||||||
nxmutex_unlock(&dev->md_lock);
|
nxmutex_unlock(&dev->md_lock);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user