Skip to content

Commit a576f36

Browse files
Aleksandr Aprelkovchucklever
authored andcommitted
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: 8e5b677 ("SUNRPC: Add a callback to initialise server requests") Signed-off-by: Aleksandr Aprelkov <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 7d12cce commit a576f36

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/sunrpc/svc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,8 +1265,6 @@ svc_generic_init_request(struct svc_rqst *rqstp,
12651265
if (rqstp->rq_proc >= versp->vs_nproc)
12661266
goto err_bad_proc;
12671267
rqstp->rq_procinfo = procp = &versp->vs_proc[rqstp->rq_proc];
1268-
if (!procp)
1269-
goto err_bad_proc;
12701268

12711269
/* Initialize storage for argp and resp */
12721270
memset(rqstp->rq_argp, 0, procp->pc_argzero);

0 commit comments

Comments
 (0)