sched/module: remove redundant unlock

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-02-10 20:21:34 +08:00 committed by Xiang Xiao
parent 3f6626f765
commit 479d196208

View File

@ -175,7 +175,6 @@ FAR void *insmod(FAR const char *filename, FAR const char *modname)
if (modlib_registry_find(modname) != NULL)
{
modlib_registry_unlock();
ret = -EEXIST;
goto errout_with_lock;
}