Skip to content

Commit 6f0e262

Browse files
jtlaytonchucklever
authored andcommitted
sunrpc: remove SVC_SYSERR
Nothing returns this error code. Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent d49afc9 commit 6f0e262

3 files changed

Lines changed: 0 additions & 11 deletions

File tree

include/linux/sunrpc/svcauth.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ struct auth_domain {
8686

8787
enum svc_auth_status {
8888
SVC_GARBAGE = 1,
89-
SVC_SYSERR,
9089
SVC_VALID,
9190
SVC_NEGATIVE,
9291
SVC_OK,

include/trace/events/sunrpc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,6 @@ SVC_RQST_FLAG_LIST
16911691
__print_flags(flags, "|", SVC_RQST_FLAG_LIST)
16921692

16931693
TRACE_DEFINE_ENUM(SVC_GARBAGE);
1694-
TRACE_DEFINE_ENUM(SVC_SYSERR);
16951694
TRACE_DEFINE_ENUM(SVC_VALID);
16961695
TRACE_DEFINE_ENUM(SVC_NEGATIVE);
16971696
TRACE_DEFINE_ENUM(SVC_OK);
@@ -1704,7 +1703,6 @@ TRACE_DEFINE_ENUM(SVC_COMPLETE);
17041703
#define show_svc_auth_status(status) \
17051704
__print_symbolic(status, \
17061705
{ SVC_GARBAGE, "SVC_GARBAGE" }, \
1707-
{ SVC_SYSERR, "SVC_SYSERR" }, \
17081706
{ SVC_VALID, "SVC_VALID" }, \
17091707
{ SVC_NEGATIVE, "SVC_NEGATIVE" }, \
17101708
{ SVC_OK, "SVC_OK" }, \

net/sunrpc/svc.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,8 +1375,6 @@ svc_process_common(struct svc_rqst *rqstp)
13751375
case SVC_GARBAGE:
13761376
rqstp->rq_auth_stat = rpc_autherr_badcred;
13771377
goto err_bad_auth;
1378-
case SVC_SYSERR:
1379-
goto err_system_err;
13801378
case SVC_DENIED:
13811379
goto err_bad_auth;
13821380
case SVC_CLOSE:
@@ -1515,12 +1513,6 @@ svc_process_common(struct svc_rqst *rqstp)
15151513
serv->sv_stats->rpcbadfmt++;
15161514
*rqstp->rq_accept_statp = rpc_proc_unavail;
15171515
goto sendit;
1518-
1519-
err_system_err:
1520-
if (serv->sv_stats)
1521-
serv->sv_stats->rpcbadfmt++;
1522-
*rqstp->rq_accept_statp = rpc_system_err;
1523-
goto sendit;
15241516
}
15251517

15261518
/*

0 commit comments

Comments
 (0)