mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 00:56:20 +01:00
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:
parent
2bd7ebcf9b
commit
438c3e47c2
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue