OSDN Git Service

Staging: lustre: Edit switch-case indent
authoraybuke ozdemir <aybuke.147@gmail.com>
Fri, 20 Feb 2015 21:51:38 +0000 (23:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Feb 2015 20:23:57 +0000 (12:23 -0800)
This patch fixes indent as the codingStyle
of the kernel recommends in dir.c
Fix checkpatch.pl error:
ERROR: switch and case should be at the same indent.

Signed-off-by: aybuke ozdemir <aybuke.147@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/dir.c

index 2b74824..a5bc694 100644 (file)
@@ -1910,21 +1910,21 @@ static loff_t ll_dir_seek(struct file *file, loff_t offset, int origin)
 
        mutex_lock(&inode->i_mutex);
        switch (origin) {
-               case SEEK_SET:
-                       break;
-               case SEEK_CUR:
-                       offset += file->f_pos;
-                       break;
-               case SEEK_END:
-                       if (offset > 0)
-                               goto out;
-                       if (api32)
-                               offset += LL_DIR_END_OFF_32BIT;
-                       else
-                               offset += LL_DIR_END_OFF;
-                       break;
-               default:
+       case SEEK_SET:
+               break;
+       case SEEK_CUR:
+               offset += file->f_pos;
+               break;
+       case SEEK_END:
+               if (offset > 0)
                        goto out;
+               if (api32)
+                       offset += LL_DIR_END_OFF_32BIT;
+               else
+                       offset += LL_DIR_END_OFF;
+               break;
+       default:
+               goto out;
        }
 
        if (offset >= 0 &&