Commit 89f0e4fe authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

sunrpc: Reduce switch/case indent

Make the case labels the same indent as the switch.

git diff -w shows 80 column line reflowing.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7fd71b1e
...@@ -1421,18 +1421,16 @@ gss_wrap_req(struct rpc_task *task, ...@@ -1421,18 +1421,16 @@ gss_wrap_req(struct rpc_task *task,
goto out; goto out;
} }
switch (gss_cred->gc_service) { switch (gss_cred->gc_service) {
case RPC_GSS_SVC_NONE: case RPC_GSS_SVC_NONE:
gss_wrap_req_encode(encode, rqstp, p, obj); gss_wrap_req_encode(encode, rqstp, p, obj);
status = 0; status = 0;
break; break;
case RPC_GSS_SVC_INTEGRITY: case RPC_GSS_SVC_INTEGRITY:
status = gss_wrap_req_integ(cred, ctx, encode, status = gss_wrap_req_integ(cred, ctx, encode, rqstp, p, obj);
rqstp, p, obj); break;
break; case RPC_GSS_SVC_PRIVACY:
case RPC_GSS_SVC_PRIVACY: status = gss_wrap_req_priv(cred, ctx, encode, rqstp, p, obj);
status = gss_wrap_req_priv(cred, ctx, encode, break;
rqstp, p, obj);
break;
} }
out: out:
gss_put_ctx(ctx); gss_put_ctx(ctx);
...@@ -1531,18 +1529,18 @@ gss_unwrap_resp(struct rpc_task *task, ...@@ -1531,18 +1529,18 @@ gss_unwrap_resp(struct rpc_task *task,
if (ctx->gc_proc != RPC_GSS_PROC_DATA) if (ctx->gc_proc != RPC_GSS_PROC_DATA)
goto out_decode; goto out_decode;
switch (gss_cred->gc_service) { switch (gss_cred->gc_service) {
case RPC_GSS_SVC_NONE: case RPC_GSS_SVC_NONE:
break; break;
case RPC_GSS_SVC_INTEGRITY: case RPC_GSS_SVC_INTEGRITY:
status = gss_unwrap_resp_integ(cred, ctx, rqstp, &p); status = gss_unwrap_resp_integ(cred, ctx, rqstp, &p);
if (status) if (status)
goto out; goto out;
break; break;
case RPC_GSS_SVC_PRIVACY: case RPC_GSS_SVC_PRIVACY:
status = gss_unwrap_resp_priv(cred, ctx, rqstp, &p); status = gss_unwrap_resp_priv(cred, ctx, rqstp, &p);
if (status) if (status)
goto out; goto out;
break; break;
} }
/* take into account extra slack for integrity and privacy cases: */ /* take into account extra slack for integrity and privacy cases: */
cred->cr_auth->au_rslack = cred->cr_auth->au_verfsize + (p - savedp) cred->cr_auth->au_rslack = cred->cr_auth->au_verfsize + (p - savedp)
......
...@@ -1663,19 +1663,18 @@ rpc_verify_header(struct rpc_task *task) ...@@ -1663,19 +1663,18 @@ rpc_verify_header(struct rpc_task *task)
if (--len < 0) if (--len < 0)
goto out_overflow; goto out_overflow;
switch ((n = ntohl(*p++))) { switch ((n = ntohl(*p++))) {
case RPC_AUTH_ERROR: case RPC_AUTH_ERROR:
break; break;
case RPC_MISMATCH: case RPC_MISMATCH:
dprintk("RPC: %5u %s: RPC call version " dprintk("RPC: %5u %s: RPC call version mismatch!\n",
"mismatch!\n", task->tk_pid, __func__);
task->tk_pid, __func__); error = -EPROTONOSUPPORT;
error = -EPROTONOSUPPORT; goto out_err;
goto out_err; default:
default: dprintk("RPC: %5u %s: RPC call rejected, "
dprintk("RPC: %5u %s: RPC call rejected, " "unknown error: %x\n",
"unknown error: %x\n", task->tk_pid, __func__, n);
task->tk_pid, __func__, n); goto out_eio;
goto out_eio;
} }
if (--len < 0) if (--len < 0)
goto out_overflow; goto out_overflow;
......
...@@ -456,13 +456,13 @@ rpc_get_inode(struct super_block *sb, umode_t mode) ...@@ -456,13 +456,13 @@ rpc_get_inode(struct super_block *sb, umode_t mode)
inode->i_ino = get_next_ino(); inode->i_ino = get_next_ino();
inode->i_mode = mode; inode->i_mode = mode;
inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
switch(mode & S_IFMT) { switch (mode & S_IFMT) {
case S_IFDIR: case S_IFDIR:
inode->i_fop = &simple_dir_operations; inode->i_fop = &simple_dir_operations;
inode->i_op = &simple_dir_inode_operations; inode->i_op = &simple_dir_inode_operations;
inc_nlink(inode); inc_nlink(inode);
default: default:
break; break;
} }
return inode; return inode;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment