* [PATCH -next] Smack: remove set but not used variable 'root_inode'
@ 2018-09-13 13:18 YueHaibing
0 siblings, 0 replies; only message in thread
From: YueHaibing @ 2018-09-13 13:18 UTC (permalink / raw)
To: jmorris, serge, casey; +Cc: linux-kernel, linux-security-module, YueHaibing
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>
---
security/smack/smackfs.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c
index f4e91c5..8972da4 100644
--- a/security/smack/smackfs.c
+++ b/security/smack/smackfs.c
@@ -2855,7 +2855,6 @@ static int smk_fill_super(struct super_block *sb, void *data, size_t data_size,
int silent)
{
int rc;
- struct inode *root_inode;
static const struct tree_descr smack_files[] = {
[SMK_LOAD] = {
@@ -2919,8 +2918,6 @@ static int smk_fill_super(struct super_block *sb, void *data, size_t data_size,
return rc;
}
- root_inode = d_inode(sb->s_root);
-
return 0;
}
--
2.7.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-13 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-13 13:18 [PATCH -next] Smack: remove set but not used variable 'root_inode' YueHaibing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).