staging: lustre: fix switch-case identation errors
authorMike Rapoport <mike.rapoport@gmail.com>
Sat, 12 Sep 2015 16:20:02 +0000 (19:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2015 15:50:44 +0000 (08:50 -0700)
Re-indent switch-case statements to fix SWITCH_CASE_INDENT_LEVEL errors
reported by checkpatch.pl

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/selftest.h
drivers/staging/lustre/lustre/libcfs/linux/linux-tracefile.c

index dfe3342..160d68c 100644 (file)
@@ -563,16 +563,16 @@ swi_state2str (int state)
 {
 #define STATE2STR(x) case x: return #x
        switch (state) {
-               default:
-                       LBUG();
-               STATE2STR(SWI_STATE_NEWBORN);
-               STATE2STR(SWI_STATE_REPLY_SUBMITTED);
-               STATE2STR(SWI_STATE_REPLY_SENT);
-               STATE2STR(SWI_STATE_REQUEST_SUBMITTED);
-               STATE2STR(SWI_STATE_REQUEST_SENT);
-               STATE2STR(SWI_STATE_REPLY_RECEIVED);
-               STATE2STR(SWI_STATE_BULK_STARTED);
-               STATE2STR(SWI_STATE_DONE);
+       default:
+               LBUG();
+       STATE2STR(SWI_STATE_NEWBORN);
+       STATE2STR(SWI_STATE_REPLY_SUBMITTED);
+       STATE2STR(SWI_STATE_REPLY_SENT);
+       STATE2STR(SWI_STATE_REQUEST_SUBMITTED);
+       STATE2STR(SWI_STATE_REQUEST_SENT);
+       STATE2STR(SWI_STATE_REPLY_RECEIVED);
+       STATE2STR(SWI_STATE_BULK_STARTED);
+       STATE2STR(SWI_STATE_DONE);
        }
 #undef STATE2STR
 }
index eb10e3b..87d8449 100644 (file)
@@ -212,12 +212,11 @@ static char *
 dbghdr_to_err_string(struct ptldebug_header *hdr)
 {
        switch (hdr->ph_subsys) {
-
-               case S_LND:
-               case S_LNET:
-                       return "LNetError";
-               default:
-                       return "LustreError";
+       case S_LND:
+       case S_LNET:
+               return "LNetError";
+       default:
+               return "LustreError";
        }
 }
 
@@ -225,12 +224,11 @@ static char *
 dbghdr_to_info_string(struct ptldebug_header *hdr)
 {
        switch (hdr->ph_subsys) {
-
-               case S_LND:
-               case S_LNET:
-                       return "LNet";
-               default:
-                       return "Lustre";
+       case S_LND:
+       case S_LNET:
+               return "LNet";
+       default:
+               return "Lustre";
        }
 }