mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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:
parent
45875b7efb
commit
c6c9b9bc9f
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user