Skip to content

Commit

Permalink
selinux: Delete an unnecessary variable initialisation in range_read()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markus Elfring authored and Paul Moore committed Mar 23, 2017
1 parent 57152a5 commit 9c312e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/selinux/ss/policydb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 9c312e7

Please sign in to comment.