diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-13 09:18:11 -0400 |
---|---|---|
committer | Casey Schaufler <casey.schaufler@intel.com> | 2018-09-18 12:07:12 -0400 |
commit | 76c9805b28557d0b6d439359350061ed0a9395e3 (patch) | |
tree | 097338e287086a11028abb95b5ce27b2d0f565d8 /security | |
parent | dbdb75bd087954aaf9b3248109cb85748b62c21d (diff) |
Smack: remove set but not used variable 'root_inode'
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 <yuehaibing@huawei.com>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/smack/smackfs.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c index f6482e53d55a..06b517075ec0 100644 --- a/security/smack/smackfs.c +++ b/security/smack/smackfs.c | |||
@@ -2853,7 +2853,6 @@ static const struct file_operations smk_ptrace_ops = { | |||
2853 | static int smk_fill_super(struct super_block *sb, void *data, int silent) | 2853 | static int smk_fill_super(struct super_block *sb, void *data, int silent) |
2854 | { | 2854 | { |
2855 | int rc; | 2855 | int rc; |
2856 | struct inode *root_inode; | ||
2857 | 2856 | ||
2858 | static const struct tree_descr smack_files[] = { | 2857 | static const struct tree_descr smack_files[] = { |
2859 | [SMK_LOAD] = { | 2858 | [SMK_LOAD] = { |
@@ -2917,8 +2916,6 @@ static int smk_fill_super(struct super_block *sb, void *data, int silent) | |||
2917 | return rc; | 2916 | return rc; |
2918 | } | 2917 | } |
2919 | 2918 | ||
2920 | root_inode = d_inode(sb->s_root); | ||
2921 | |||
2922 | return 0; | 2919 | return 0; |
2923 | } | 2920 | } |
2924 | 2921 | ||