[PATCH] fs: fix switch/case indentation in sysfs() syscall
Manush Prajwal <[email protected]> Sat, 8 Aug 2026 23:58:16 +0530
| Newsgroups | gmane.linux.kernel,gmane.linux.file-systems |
|---|---|
| Message-ID | <[email protected]> |
The case labels in the sysfs(2) syscall implementation are indented one level deeper than the switch statement itself, which does not match the kernel coding style (switch and case should be at the same indentation level). Fix the indentation; no functional change. Signed-off-by: Manush Prajwal <[email protected]> --- fs/filesystems.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/fs/filesystems.c b/fs/filesystems.c index 673a03b5f..3083d904d 100644 --- a/fs/filesystems.c +++ b/fs/filesystems.c @@ -201,17 +201,17 @@ SYSCALL_DEFINE3(sysfs, int, option, unsigned long, arg1, unsigned long, arg2) int retval = -EINVAL; switch (option) { - case 1: - retval = fs_index((const char __user *) arg1); - break; + case 1: + retval = fs_index((const char __user *) arg1); + break; - case 2: - retval = fs_name(arg1, (char __user *) arg2); - break; + case 2: + retval = fs_name(arg1, (char __user *) arg2); + break; - case 3: - retval = fs_maxindex(); - break; + case 3: + retval = fs_maxindex(); + break; } return retval; } -- 2.46.2.windows.1