From: Andreas Gruenbacher Date: Thu, 24 Dec 2015 16:09:39 +0000 (-0500) Subject: selinux: Remove unused variable in selinux_inode_init_security X-Git-Tag: v4.5-rc1~70^2~3^2~8 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a44ca52ca6bd10ce588102789dde33f9fd6569cf;p=karo-tx-linux.git selinux: Remove unused variable in selinux_inode_init_security Signed-off-by: Andreas Gruenbacher Acked-by: Stephen Smalley Signed-off-by: Paul Moore --- diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index d0cfaa9f19d0..714acadc027e 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -2753,13 +2753,11 @@ static int selinux_inode_init_security(struct inode *inode, struct inode *dir, void **value, size_t *len) { const struct task_security_struct *tsec = current_security(); - struct inode_security_struct *dsec; struct superblock_security_struct *sbsec; u32 sid, newsid, clen; int rc; char *context; - dsec = dir->i_security; sbsec = dir->i_sb->s_security; sid = tsec->sid;