summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1c74e4b)
Using ksys_open() and ksys_close() wrappers allow us to avoid the
in-kernel calls to the sys_open() and sys_close() syscalls.
Change-Id: Iea33654daef917f88cede31675c66e8b5becad77
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
- fd = sys_open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0644);
+ fd = ksys_open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0644);
if (fd >= 0) {
file = fget(fd);
if (file) {
if (fd >= 0) {
file = fget(fd);
if (file) {
} else {
pr_err("Reboot parameter passing is failed.\n"
"Inform file path should be described correctly in config.\n");
} else {
pr_err("Reboot parameter passing is failed.\n"
"Inform file path should be described correctly in config.\n");