summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2026-01-28 07:46:06 +0300
committerAnna Schumaker <anna.schumaker@oracle.com>2026-01-31 00:49:15 +0300
commit438c3e47c2e5edfde3ab01443345b4c5e5f2fb55 (patch)
tree27ca5d0ef1316eb88edab599b5f227b64e2e762e
parent2bd7ebcf9bff7ece7a0c3cfa38191d77b4383658 (diff)
downloadlinux-438c3e47c2e5edfde3ab01443345b4c5e5f2fb55.tar.xz
NFS: remove the delegation == NULL check in nfs_end_delegation_return
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>
-rw-r--r--fs/nfs/delegation.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c
index d95a6e9876f1..32803963b5d7 100644
--- a/fs/nfs/delegation.c
+++ b/fs/nfs/delegation.c
@@ -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;