Skip to content

Commit

Permalink
selinux: Delete an unnecessary variable assignment in filename_trans_…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Markus Elfring authored and Paul Moore committed Mar 23, 2017
1 parent 315e01a commit 02fcef2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion security/selinux/ss/policydb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 02fcef2

Please sign in to comment.