diff options
author | Aleksandr Aprelkov <aaprelkov@usergate.com> | 2024-03-27 08:10:44 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2024-05-06 15:07:18 +0200 |
commit | a576f36971ab4097b6aa76433532aa1fb5ee2d3b (patch) | |
tree | 2537fcac10308bdb0749cd9b531dfc8421078a0f /net | |
parent | fs: nfsd: use group allocation/free of per-cpu counters API (diff) | |
download | linux-a576f36971ab4097b6aa76433532aa1fb5ee2d3b.tar.xz linux-a576f36971ab4097b6aa76433532aa1fb5ee2d3b.zip |
sunrpc: removed redundant procp check
since vs_proc pointer is dereferenced before getting it's address there's
no need to check for NULL.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 8e5b67731d08 ("SUNRPC: Add a callback to initialise server requests")
Signed-off-by: Aleksandr Aprelkov <aaprelkov@usergate.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/svc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index b33e429336fb..2b4b1276d4e8 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -1265,8 +1265,6 @@ svc_generic_init_request(struct svc_rqst *rqstp, if (rqstp->rq_proc >= versp->vs_nproc) goto err_bad_proc; rqstp->rq_procinfo = procp = &versp->vs_proc[rqstp->rq_proc]; - if (!procp) - goto err_bad_proc; /* Initialize storage for argp and resp */ memset(rqstp->rq_argp, 0, procp->pc_argzero); |