staging: lustre: cleanup align switch and case
PATCH 1/1 staging: lustre: cleanup align switch and case
From: samuel kihahu <[email protected]>
Align switch and case to be at the same indent.
--- drivers/staging/lustre/lnet/selftest/module.c | 50 +++++++++++++-------------- 1 file changed, 25 insertions(+), 25 deletions(-)
drivers/staging/lustre/lnet/selftest/module.c +0 -0
@@ -61,31 +61,31 @@ lnet_selftest_fini(void)
int i;
switch (lst_init_step) {- case LST_INIT_CONSOLE:
- lstcon_console_fini();
- case LST_INIT_FW:
- sfw_shutdown();
- case LST_INIT_RPC:
- srpc_shutdown();
- case LST_INIT_WI_TEST:
- for (i = 0;
- i < cfs_cpt_number(lnet_cpt_table()); i++) {
- if (lst_sched_test[i] == NULL)
- continue;
- cfs_wi_sched_destroy(lst_sched_test[i]);
- }
- LIBCFS_FREE(lst_sched_test,
- sizeof(lst_sched_test[0]) *
- cfs_cpt_number(lnet_cpt_table()));
- lst_sched_test = NULL;
-
- case LST_INIT_WI_SERIAL:
- cfs_wi_sched_destroy(lst_sched_serial);
- lst_sched_serial = NULL;
- case LST_INIT_NONE:
- break;
- default:
- LBUG();
+ case LST_INIT_CONSOLE:
+ lstcon_console_fini();
+ case LST_INIT_FW:
+ sfw_shutdown();
+ case LST_INIT_RPC:
+ srpc_shutdown();
+ case LST_INIT_WI_TEST:
+ for (i = 0;
+ i < cfs_cpt_number(lnet_cpt_table()); i++) {
+ if (lst_sched_test[i] == NULL)
+ continue;
+ cfs_wi_sched_destroy(lst_sched_test[i]);
+ }
+ LIBCFS_FREE(lst_sched_test,
+ sizeof(lst_sched_test[0]) *
+ cfs_cpt_number(lnet_cpt_table()));
+ lst_sched_test = NULL;
+
+ case LST_INIT_WI_SERIAL:
+ cfs_wi_sched_destroy(lst_sched_serial);
+ lst_sched_serial = NULL;
+ case LST_INIT_NONE:
+ break;
+ default:
+ LBUG(); } return;
}
Quoted 1 line · samuel kihahu
From: samuel kihahu <[email protected]>
Don't include this unless you are forwarding a patch on behalf of the original author. Also the capitalization isn't correct. These things are intended to be a bit formal like signing a legal document.
regards,
dan carpenter
samuel,
This patch is corrupt and won't apply. I suspect it is due to missing spaces at the start of each line in the diff.
I recommend using 'git send-email'. But if you are using a different client have a look at Documentation/email-clients.txt for tips on how to avoid these problems.
Quoted 75 lines · samuel kihahu
From: samuel kihahu <[email protected]>
Align switch and case to be at the same indent.
Signed-off-by samuel kihahu <[email protected]>--- drivers/staging/lustre/lnet/selftest/module.c | 50 +++++++++++++-------------- 1 file changed, 25 insertions(+), 25 deletions(-)drivers/staging/lustre/lnet/selftest/module.c +25
-26@@ -61,31 +61,31 @@ lnet_selftest_fini(void)int i;switch (lst_init_step) { -case LST_INIT_CONSOLE : -lstcon_console_fini (); -case LST_INIT_FW : -sfw_shutdown (); -case LST_INIT_RPC : -srpc_shutdown (); -case LST_INIT_WI_TEST : -for (i =0 ; - i <cfs_cpt_number (lnet_cpt_table ()); i++) { -if (lst_sched_test[i] ==NULL ) -continue ; -cfs_wi_sched_destroy (lst_sched_test[i]); - } -LIBCFS_FREE (lst_sched_test, -sizeof (lst_sched_test[0 ]) * -cfs_cpt_number (lnet_cpt_table ())); - lst_sched_test =NULL ; - -case LST_INIT_WI_SERIAL : -cfs_wi_sched_destroy (lst_sched_serial); - lst_sched_serial =NULL ; -case LST_INIT_NONE : -break ; -default : -LBUG (); +case LST_INIT_CONSOLE : +lstcon_console_fini (); +case LST_INIT_FW : +sfw_shutdown (); +case LST_INIT_RPC : +srpc_shutdown (); +case LST_INIT_WI_TEST : +for (i =0 ; + i <cfs_cpt_number (lnet_cpt_table ()); i++) { +if (lst_sched_test[i] ==NULL ) +continue ; +cfs_wi_sched_destroy (lst_sched_test[i]); + } +LIBCFS_FREE (lst_sched_test, +sizeof (lst_sched_test[0 ]) * +cfs_cpt_number (lnet_cpt_table ())); + lst_sched_test =NULL ; + +case LST_INIT_WI_SERIAL : +cfs_wi_sched_destroy (lst_sched_serial); + lst_sched_serial =NULL ; +case LST_INIT_NONE : +break ; +default : +LBUG (); }return ; } --To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Signature · 1 line
- Jeremiah Mahler