libsepol: remove useless assignments
There is no point in initializing a variable which gets almost-immediately assigned an other value. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
ebe24ad20b
commit
69ec21ce6a
2 changed files with 0 additions and 3 deletions
|
@ -2253,7 +2253,6 @@ int cil_roletrans_to_policydb(policydb_t *pdb, const struct cil_db *db, struct c
|
|||
new->tclass = sepol_obj->s.value;
|
||||
new->new_role = sepol_result->s.value;
|
||||
|
||||
rc = SEPOL_OK;
|
||||
rc = hashtab_insert(role_trans_table, (hashtab_key_t)new, &(new->new_role));
|
||||
if (rc != SEPOL_OK) {
|
||||
if (rc == SEPOL_EEXIST) {
|
||||
|
@ -3041,7 +3040,6 @@ int cil_rangetransition_to_policydb(policydb_t *pdb, const struct cil_db *db, st
|
|||
goto exit;
|
||||
}
|
||||
|
||||
rc = SEPOL_OK;
|
||||
rc = hashtab_insert(range_trans_table, (hashtab_key_t)newkey, newdatum);
|
||||
if (rc != SEPOL_OK) {
|
||||
if (rc == SEPOL_EEXIST) {
|
||||
|
|
|
@ -926,7 +926,6 @@ static int write_cons_helper(policydb_t * p,
|
|||
if (items != 2)
|
||||
return POLICYDB_ERROR;
|
||||
for (e = c->expr; e; e = e->next) {
|
||||
items = 0;
|
||||
buf[0] = cpu_to_le32(e->expr_type);
|
||||
buf[1] = cpu_to_le32(e->attr);
|
||||
buf[2] = cpu_to_le32(e->op);
|
||||
|
|
Loading…
Reference in a new issue