]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nfsd: delete unnecessary NULL check in __fh_verify()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 4 Sep 2025 18:59:30 +0000 (21:59 +0300)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 1 Oct 2025 19:54:01 +0000 (15:54 -0400)
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 <dan.carpenter@linaro.org>
Reviewed-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfsfh.c

index 062cfc18d8c6a4cb29465a482cb575a85a1e5691..3edccc38db42e56d5652f65c487c90c42f209d68 100644 (file)
@@ -403,9 +403,7 @@ __fh_verify(struct svc_rqst *rqstp,
        if (error)
                goto out;
 
-       /* During LOCALIO call to fh_verify will be called with a NULL rqstp */
-       if (rqstp)
-               svc_xprt_set_valid(rqstp->rq_xprt);
+       svc_xprt_set_valid(rqstp->rq_xprt);
 
 check_permissions:
        /* Finally, check access permissions. */