]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fs: fix switch/case indentation in sysfs() syscall
authorManush Prajwal <manushprajwal555@gmail.com>
Sat, 8 Aug 2026 18:28:16 +0000 (23:58 +0530)
committerChristian Brauner <brauner@kernel.org>
Wed, 12 Aug 2026 09:36:40 +0000 (11:36 +0200)
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 <manushprajwal555@gmail.com>
Link: https://patch.msgid.link/20260808182816.2399-1-manushprajwal555@gmail.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/filesystems.c

index 673a03b5f32b437e667ec83a9fb499026910ba00..3083d904df9bc6740ea7aa362180026b1736dcec 100644 (file)
@@ -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;
 }