Skip to content

Commit

Permalink
Smack: remove set but not used variable 'root_inode'
Browse files Browse the repository at this point in the history
Fixes gcc '-Wunused-but-set-variable' warning:

security/smack/smackfs.c: In function 'smk_fill_super':
security/smack/smackfs.c:2856:16: warning:
 variable 'root_inode' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: Casey Schaufler <[email protected]>
  • Loading branch information
YueHaibing authored and cschaufler committed Sep 18, 2018
1 parent dbdb75b commit 76c9805
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions security/smack/smackfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,6 @@ static const struct file_operations smk_ptrace_ops = {
static int smk_fill_super(struct super_block *sb, void *data, int silent)
{
int rc;
struct inode *root_inode;

static const struct tree_descr smack_files[] = {
[SMK_LOAD] = {
Expand Down Expand Up @@ -2917,8 +2916,6 @@ static int smk_fill_super(struct super_block *sb, void *data, int silent)
return rc;
}

root_inode = d_inode(sb->s_root);

return 0;
}

Expand Down

0 comments on commit 76c9805

Please sign in to comment.