Skip to content

Commit

Permalink
unistd/lib_getcwd.c : remove extra sched_unlock call
Browse files Browse the repository at this point in the history
calling sched_unlock without sched_lock, hence removed it

Signed-off-by: Abhishek Akkabathula <[email protected]>
  • Loading branch information
abhishek-samsung authored and sunghan-chang committed May 15, 2024
1 parent c058ca7 commit d9915ed
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/libc/unistd/lib_getcwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ FAR char *getcwd(FAR char *buf, size_t size)
/* Copy the cwd to the user buffer */

strncpy(buf, pwd, pwd_len);
sched_unlock();
return buf;
}
#endif /* CONFIG_NFILE_DESCRIPTORS && !CONFIG_DISABLE_ENVIRON */

0 comments on commit d9915ed

Please sign in to comment.