2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-01 09:53:44 +08:00

staging: lustre: ldlm: Fix indentation errors for switch-case

checkpatch complains about two indentation errors where the case
statements are on a higher indentation level than the corresponding
switch statement. This patch removes these errors.

Signed-off-by: Andreas Ruprecht <rupran@einserver.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Andreas Ruprecht 2014-11-23 14:37:51 +01:00 committed by Greg Kroah-Hartman
parent 43ee4160bb
commit 0e1bbbb030
2 changed files with 25 additions and 25 deletions

View File

@ -1823,24 +1823,24 @@ int ldlm_run_ast_work(struct ldlm_namespace *ns, struct list_head *rpc_list,
arg->list = rpc_list;
switch (ast_type) {
case LDLM_WORK_BL_AST:
arg->type = LDLM_BL_CALLBACK;
work_ast_lock = ldlm_work_bl_ast_lock;
break;
case LDLM_WORK_CP_AST:
arg->type = LDLM_CP_CALLBACK;
work_ast_lock = ldlm_work_cp_ast_lock;
break;
case LDLM_WORK_REVOKE_AST:
arg->type = LDLM_BL_CALLBACK;
work_ast_lock = ldlm_work_revoke_ast_lock;
break;
case LDLM_WORK_GL_AST:
arg->type = LDLM_GL_CALLBACK;
work_ast_lock = ldlm_work_gl_ast_lock;
break;
default:
LBUG();
case LDLM_WORK_BL_AST:
arg->type = LDLM_BL_CALLBACK;
work_ast_lock = ldlm_work_bl_ast_lock;
break;
case LDLM_WORK_CP_AST:
arg->type = LDLM_CP_CALLBACK;
work_ast_lock = ldlm_work_cp_ast_lock;
break;
case LDLM_WORK_REVOKE_AST:
arg->type = LDLM_BL_CALLBACK;
work_ast_lock = ldlm_work_revoke_ast_lock;
break;
case LDLM_WORK_GL_AST:
arg->type = LDLM_GL_CALLBACK;
work_ast_lock = ldlm_work_gl_ast_lock;
break;
default:
LBUG();
}
/* We create a ptlrpc request set with flow control extension.

View File

@ -1419,14 +1419,14 @@ static ldlm_policy_res_t ldlm_cancel_no_wait_policy(struct ldlm_namespace *ns,
/* don't check added & count since we want to process all locks
* from unused list */
switch (lock->l_resource->lr_type) {
case LDLM_EXTENT:
case LDLM_IBITS:
if (cb && cb(lock))
break;
default:
result = LDLM_POLICY_SKIP_LOCK;
lock->l_flags |= LDLM_FL_SKIPPED;
case LDLM_EXTENT:
case LDLM_IBITS:
if (cb && cb(lock))
break;
default:
result = LDLM_POLICY_SKIP_LOCK;
lock->l_flags |= LDLM_FL_SKIPPED;
break;
}
unlock_res_and_lock(lock);