afs: afs_unlink() doesn't need to check dentry->d_inode
authorDavid Howells <dhowells@redhat.com>
Thu, 20 Jun 2019 17:12:16 +0000 (18:12 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 20 Jun 2019 17:12:16 +0000 (18:12 +0100)
commitfa59f52f5b1412c373813e24e7cbe5ab44518ed8
tree5d6226d6d4fbb25e202e391a9d722cdf5c41dcaa
parent2cd42d19cffa0ec3dfb57b1b3e1a07a9bf4ed80a
afs: afs_unlink() doesn't need to check dentry->d_inode

Don't check that dentry->d_inode is valid in afs_unlink().  We should be
able to take that as given.

This caused Smatch to issue the following warning:

fs/afs/dir.c:1392 afs_unlink() error: we previously assumed 'vnode' could be null (see line 1375)

Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/dir.c