summaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-01-14 19:02:42 +0100
committerPaul Moore <paul@paul-moore.com>2017-03-23 23:08:05 +0100
commit02fcef27cc908e22ddb68d30ad1b7fd9ac3a1c24 (patch)
treec2421a0b661fdc3320458d4497fbeee736542122 /security/selinux
parentselinux: One function call less in genfs_read() after null pointer detection (diff)
downloadlinux-02fcef27cc908e22ddb68d30ad1b7fd9ac3a1c24.tar.xz
linux-02fcef27cc908e22ddb68d30ad1b7fd9ac3a1c24.zip
selinux: Delete an unnecessary variable assignment in filename_trans_read()
The local variable "ft" was set to a null pointer despite of an immediate reassignment. Thus remove this statement from the beginning of a loop. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux')
-rw-r--r--security/selinux/ss/policydb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/security/selinux/ss/policydb.c b/security/selinux/ss/policydb.c
index 4390558464c5..7131251be628 100644
--- a/security/selinux/ss/policydb.c
+++ b/security/selinux/ss/policydb.c
@@ -1929,7 +1929,6 @@ static int filename_trans_read(struct policydb *p, void *fp)
nel = le32_to_cpu(buf[0]);
for (i = 0; i < nel; i++) {
- ft = NULL;
otype = NULL;
name = NULL;