]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
selinux: Remove unused variable in selinux_inode_init_security
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 24 Dec 2015 16:09:39 +0000 (11:09 -0500)
committerPaul Moore <pmoore@redhat.com>
Thu, 24 Dec 2015 16:09:39 +0000 (11:09 -0500)
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/hooks.c

index d0cfaa9f19d08034a3c3600d8381ed166a369388..714acadc027e417ed3ed25921da91cb85b0b3062 100644 (file)
@@ -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;