Skip to content

Commit eafdd7e

Browse files
Dan Carpenterchucklever
authored andcommitted
nfsd: delete unnecessary NULL check in __fh_verify()
In commit 4a0de50a44bb ("nfsd: decouple the xprtsec policy check from check_nfsd_access()") we added a NULL check on "rqstp" to earlier in the function. This check is no longer required so delete it. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Scott Mayhew <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent e0963ce commit eafdd7e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fs/nfsd/nfsfh.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,9 +403,7 @@ __fh_verify(struct svc_rqst *rqstp,
403403
if (error)
404404
goto out;
405405

406-
/* During LOCALIO call to fh_verify will be called with a NULL rqstp */
407-
if (rqstp)
408-
svc_xprt_set_valid(rqstp->rq_xprt);
406+
svc_xprt_set_valid(rqstp->rq_xprt);
409407

410408
check_permissions:
411409
/* Finally, check access permissions. */

0 commit comments

Comments
 (0)