sunrpc/svc.c: Remove unused line 'rqstp->rq_server = serv;' in svc_process
PATCH 1/1 sunrpc/svc.c: Remove unused line 'rqstp->rq_server = serv;' in svc_process
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 <[email protected]>
--------
sunrpc/svc.mod.c renamed from sunrpc/svc.c +0 -1
@@ -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;
Quoted 1 line · ideawu
There is no need to set
rqstp->rq_serverto serv, while serv is initialized asrqstp->rq_serverat previous line. And between these two lines, there is no change torqstp->rq_server.
Thanks! Applied.
sunrpc/svc.mod.c
Quoted 6 lines
Signed-off-by ideawu <[email protected]>--------
sunrpc/svc.mod.c renamed from sunrpc/svc.c +0
-0
(But next time please make sure the patch applies with 'patch -p1').
--b.
Quoted 9 lines
sunrpc/svc.mod.c renamed from sunrpc/svc.c +0
-1@@ -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;