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>
This commit is contained in:
Christoph Hellwig 2026-01-28 05:46:06 +01:00 committed by Anna Schumaker
parent 2bd7ebcf9b
commit 438c3e47c2

View 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;