Skip to content

Commit

Permalink
sunrpc/svc.c: Remove unused line 'rqstp->rq_server = serv;' in svc_pr…
Browse files Browse the repository at this point in the history
…ocess

There is no need to set rqstp->rq_server to serv, while serv is initialized as rqstp->rq_server at previous line. And between these two lines, there is no change to rqstp->rq_server.

Signed-off-by: ideawu <ideawu@163.com>
Reviewed-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
  • Loading branch information
ideawu authored and J. Bruce Fields committed Mar 27, 2009
1 parent 2795e53 commit abd91ee
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/sunrpc/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,6 @@ svc_process(struct svc_rqst *rqstp)
procp = versp->vs_proc + proc;
if (proc >= versp->vs_nproc || !procp->pc_func)
goto err_bad_proc;
rqstp->rq_server = serv;
rqstp->rq_procinfo = procp;

/* Syntactic check complete */
Expand Down

0 comments on commit abd91ee

Please sign in to comment.