summaryrefslogtreecommitdiff
path: root/security/selinux
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-01-14 22:40:12 +0300
committerPaul Moore <paul@paul-moore.com>2017-03-24 01:16:55 +0300
commit9c312e79d6afb673114ebe7aabd5594e79827eea (patch)
tree19ba13b22748e888b940e0cddad9465571fb8d1b /security/selinux
parent57152a5be08e240654993984a0f6e54254882626 (diff)
downloadlinux-9c312e79d6afb673114ebe7aabd5594e79827eea.tar.xz
selinux: Delete an unnecessary variable initialisation in range_read()
The local variable "rt" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning which became unnecessary with a previous update step. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/policydb.c b/security/selinux/ss/policydb.c
index 6c093018ae8d..a8389396e9a9 100644
--- a/security/selinux/ss/policydb.c
+++ b/security/selinux/ss/policydb.c
@@ -1841,7 +1841,7 @@ u32 string_to_av_perm(struct policydb *p, u16 tclass, const char *name)
static int range_read(struct policydb *p, void *fp)
{
- struct range_trans *rt = NULL;
+ struct range_trans *rt;
struct mls_range *r = NULL;
int i, rc;
__le32 buf[2];