From d07fa25e04a19ccb9aa25bb6e2156d23d213db77 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Tue, 28 Nov 2023 20:11:05 +0100 Subject: Meta: Apply new clang-format rules to kernel --- kernel/syscalls/stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kernel/syscalls/stat.c') diff --git a/kernel/syscalls/stat.c b/kernel/syscalls/stat.c index c430725..0af2121 100644 --- a/kernel/syscalls/stat.c +++ b/kernel/syscalls/stat.c @@ -6,8 +6,8 @@ int syscall_stat(SYS_STAT_PARAMS *args) { const char *pathname = copy_and_allocate_user_string(args->pathname); struct stat *statbuf = args->statbuf; int fd = vfs_open(pathname, O_READ, 0); - if(0 > fd) - return -ENOENT; + if (0 > fd) + return -ENOENT; int rc = vfs_fstat(fd, statbuf); vfs_close(fd); return rc; -- cgit v1.2.3