Staging: lustre: default used instead of break
PATCH 1/1 Staging: lustre: default used instead of break
WARNING: switch default: should use break.
That was found by running checkpatch
Signed-off-by Melike Yurtoglu <[email protected]>
--- drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c +1 -1
@@ -143,7 +143,7 @@ cleanup:ptlrpc_hr_fini ();req_layout_fini ();/* Fall through */ -default : ; +break ; }return rc;
Signature · 1 line
1.8.3.2
Greg KH
maintainerQuoted 13 lines · Melike Yurtoglu
WARNING: switch default: should use break.
That was found by running checkpatchSigned-off-by Melike Yurtoglu <[email protected]>--- drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c +0
-0
drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c cleanup: · line 147
Quoted 6 lines
drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c +1
-1@@ -143,7 +143,7 @@ cleanup:ptlrpc_hr_fini ();req_layout_fini ();/* Fall through */ -default : ; +break ; }
I don't understand, why is this better? Or even correct?
thanks,
greg k-h