don't bother with ->d_inode->i_sb - it's always equal to ->d_sb

... and neither can ever be NULL

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2016-04-10 01:33:30 -04:00
parent 04c57f4501
commit fc64005c93
30 changed files with 41 additions and 50 deletions

View File

@@ -1316,7 +1316,7 @@ static int selinux_genfs_get_sid(struct dentry *dentry,
u32 *sid)
{
int rc;
struct super_block *sb = dentry->d_inode->i_sb;
struct super_block *sb = dentry->d_sb;
char *buffer, *path;
buffer = (char *)__get_free_page(GFP_KERNEL);