]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
NFS: remove the delegation == NULL check in nfs_end_delegation_return
authorChristoph Hellwig <hch@lst.de>
Wed, 28 Jan 2026 04:46:06 +0000 (05:46 +0100)
committerAnna Schumaker <anna.schumaker@oracle.com>
Fri, 30 Jan 2026 21:49:15 +0000 (16:49 -0500)
All callers now pass a non-NULL delegation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/delegation.c

index d95a6e9876f15a092ce57697e945e139753718f4..32803963b5d7be7607b560e651814aafdba56c05 100644 (file)
@@ -571,9 +571,6 @@ static int nfs_end_delegation_return(struct inode *inode,
        unsigned int mode = O_WRONLY | O_RDWR;
        int err = 0;
 
-       if (delegation == NULL)
-               return 0;
-
        /* Directory delegations don't require any state recovery */
        if (!S_ISREG(inode->i_mode))
                goto out_return;