projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
315e01a
)
selinux: Delete an unnecessary variable assignment in filename_trans_read()
author
Markus Elfring
<elfring@users.sourceforge.net>
Sat, 14 Jan 2017 18:02:42 +0000
(19:02 +0100)
committer
Paul Moore
<paul@paul-moore.com>
Thu, 23 Mar 2017 22:08:05 +0000
(18:08 -0400)
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>
security/selinux/ss/policydb.c
patch
|
blob
|
history
diff --git
a/security/selinux/ss/policydb.c
b/security/selinux/ss/policydb.c
index 4390558464c553196059e35d243022b3b381fa62..7131251be628730dbc7a8086ec6935e941294dbe 100644
(file)
--- 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;