NFS: remove the NULL inode check in nfs4_inode_return_delegation_on_close

The only caller dereferences a field in the inode just before calling
nfs4_inode_return_delegation_on_close.

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-07 08:26:55 +01:00 committed by Anna Schumaker
parent 45875b7efb
commit c6c9b9bc9f

View File

@ -860,8 +860,6 @@ void nfs4_inode_return_delegation_on_close(struct inode *inode)
struct nfs_delegation *delegation;
struct nfs_delegation *ret = NULL;
if (!inode)
return;
rcu_read_lock();
delegation = nfs4_get_valid_delegation(inode);
if (!delegation)