aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-07-01 05:43:12 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-01 19:11:16 -0400
commit89f0e4feafb64643b0f0aba9d89984362bac9739 (patch)
treeb6d9a44b6f5099b1f489e3140bff611abb020884 /net/sunrpc
parent7fd71b1e0787d4d32c6225ca59e23e522cd67cc3 (diff)
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: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/auth_gss/auth_gss.c46
-rw-r--r--net/sunrpc/clnt.c25
-rw-r--r--net/sunrpc/rpc_pipe.c14
3 files changed, 41 insertions, 44 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c
index 339ba64cce1e..16177d2ef62a 100644
--- a/net/sunrpc/auth_gss/auth_gss.c
+++ b/net/sunrpc/auth_gss/auth_gss.c
@@ -1421,18 +1421,16 @@ gss_wrap_req(struct rpc_task *task,
1421 goto out; 1421 goto out;
1422 } 1422 }
1423 switch (gss_cred->gc_service) { 1423 switch (gss_cred->gc_service) {
1424 case RPC_GSS_SVC_NONE: 1424 case RPC_GSS_SVC_NONE:
1425 gss_wrap_req_encode(encode, rqstp, p, obj); 1425 gss_wrap_req_encode(encode, rqstp, p, obj);
1426 status = 0; 1426 status = 0;
1427 break; 1427 break;
1428 case RPC_GSS_SVC_INTEGRITY: 1428 case RPC_GSS_SVC_INTEGRITY:
1429 status = gss_wrap_req_integ(cred, ctx, encode, 1429 status = gss_wrap_req_integ(cred, ctx, encode, rqstp, p, obj);
1430 rqstp, p, obj); 1430 break;
1431 break; 1431 case RPC_GSS_SVC_PRIVACY:
1432 case RPC_GSS_SVC_PRIVACY: 1432 status = gss_wrap_req_priv(cred, ctx, encode, rqstp, p, obj);
1433 status = gss_wrap_req_priv(cred, ctx, encode, 1433 break;
1434 rqstp, p, obj);
1435 break;
1436 } 1434 }
1437out: 1435out:
1438 gss_put_ctx(ctx); 1436 gss_put_ctx(ctx);
@@ -1531,18 +1529,18 @@ gss_unwrap_resp(struct rpc_task *task,
1531 if (ctx->gc_proc != RPC_GSS_PROC_DATA) 1529 if (ctx->gc_proc != RPC_GSS_PROC_DATA)
1532 goto out_decode; 1530 goto out_decode;
1533 switch (gss_cred->gc_service) { 1531 switch (gss_cred->gc_service) {
1534 case RPC_GSS_SVC_NONE: 1532 case RPC_GSS_SVC_NONE:
1535 break; 1533 break;
1536 case RPC_GSS_SVC_INTEGRITY: 1534 case RPC_GSS_SVC_INTEGRITY:
1537 status = gss_unwrap_resp_integ(cred, ctx, rqstp, &p); 1535 status = gss_unwrap_resp_integ(cred, ctx, rqstp, &p);
1538 if (status) 1536 if (status)
1539 goto out; 1537 goto out;
1540 break; 1538 break;
1541 case RPC_GSS_SVC_PRIVACY: 1539 case RPC_GSS_SVC_PRIVACY:
1542 status = gss_unwrap_resp_priv(cred, ctx, rqstp, &p); 1540 status = gss_unwrap_resp_priv(cred, ctx, rqstp, &p);
1543 if (status) 1541 if (status)
1544 goto out; 1542 goto out;
1545 break; 1543 break;
1546 } 1544 }
1547 /* take into account extra slack for integrity and privacy cases: */ 1545 /* take into account extra slack for integrity and privacy cases: */
1548 cred->cr_auth->au_rslack = cred->cr_auth->au_verfsize + (p - savedp) 1546 cred->cr_auth->au_rslack = cred->cr_auth->au_verfsize + (p - savedp)
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index b84d7395535e..2c1ffb95d09f 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1663,19 +1663,18 @@ rpc_verify_header(struct rpc_task *task)
1663 if (--len < 0) 1663 if (--len < 0)
1664 goto out_overflow; 1664 goto out_overflow;
1665 switch ((n = ntohl(*p++))) { 1665 switch ((n = ntohl(*p++))) {
1666 case RPC_AUTH_ERROR: 1666 case RPC_AUTH_ERROR:
1667 break; 1667 break;
1668 case RPC_MISMATCH: 1668 case RPC_MISMATCH:
1669 dprintk("RPC: %5u %s: RPC call version " 1669 dprintk("RPC: %5u %s: RPC call version mismatch!\n",
1670 "mismatch!\n", 1670 task->tk_pid, __func__);
1671 task->tk_pid, __func__); 1671 error = -EPROTONOSUPPORT;
1672 error = -EPROTONOSUPPORT; 1672 goto out_err;
1673 goto out_err; 1673 default:
1674 default: 1674 dprintk("RPC: %5u %s: RPC call rejected, "
1675 dprintk("RPC: %5u %s: RPC call rejected, " 1675 "unknown error: %x\n",
1676 "unknown error: %x\n", 1676 task->tk_pid, __func__, n);
1677 task->tk_pid, __func__, n); 1677 goto out_eio;
1678 goto out_eio;
1679 } 1678 }
1680 if (--len < 0) 1679 if (--len < 0)
1681 goto out_overflow; 1680 goto out_overflow;
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 72bc53683965..b181e3441323 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -456,13 +456,13 @@ rpc_get_inode(struct super_block *sb, umode_t mode)
456 inode->i_ino = get_next_ino(); 456 inode->i_ino = get_next_ino();
457 inode->i_mode = mode; 457 inode->i_mode = mode;
458 inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME; 458 inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
459 switch(mode & S_IFMT) { 459 switch (mode & S_IFMT) {
460 case S_IFDIR: 460 case S_IFDIR:
461 inode->i_fop = &simple_dir_operations; 461 inode->i_fop = &simple_dir_operations;
462 inode->i_op = &simple_dir_inode_operations; 462 inode->i_op = &simple_dir_inode_operations;
463 inc_nlink(inode); 463 inc_nlink(inode);
464 default: 464 default:
465 break; 465 break;
466 } 466 }
467 return inode; 467 return inode;
468} 468}