Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ideawu@163.com>
Reviewed-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>

authored by

ideawu and committed by
J. Bruce Fields
abd91ee9 2795e53b

-1
-1
net/sunrpc/svc.c
··· 1093 1093 procp = versp->vs_proc + proc; 1094 1094 if (proc >= versp->vs_nproc || !procp->pc_func) 1095 1095 goto err_bad_proc; 1096 - rqstp->rq_server = serv; 1097 1096 rqstp->rq_procinfo = procp; 1098 1097 1099 1098 /* Syntactic check complete */