kernel/binary_manager: Remove unnessasary sched_lock/unlock
It is not nessasary to call sched_lock/unlock here.
#include <string.h>
#include <signal.h>
#include <stdlib.h>
-#include <tinyara/sched.h>
#include <tinyara/binary_manager.h>
#include "binary_manager.h"
@@ -163,8 +162,6 @@ int binary_manager(int argc, char *argv[])
continue;
}
- sched_lock();
-
bmvdbg("Recevied Request msg : cmd = %d\n", request_msg);
switch (request_msg.cmd) {
#ifdef CONFIG_BINMGR_RECOVERY
@@ -191,8 +188,6 @@ int binary_manager(int argc, char *argv[])
default:
break;
}
-
- sched_unlock();
}
binary_manager_exit:
