From: Christoph Hellwig Date: Wed, 7 Jan 2026 07:26:55 +0000 (+0100) Subject: NFS: remove the NULL inode check in nfs4_inode_return_delegation_on_close X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6c9b9bc9f6aaba1d518c7b4bcdbbd9171ce82cb;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Anna Schumaker --- diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c index 95f410d65e3cc..937d5d9f933f3 100644 --- a/fs/nfs/delegation.c +++ b/fs/nfs/delegation.c @@ -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)