diff --git a/libsepol/cil/src/cil_binary.c b/libsepol/cil/src/cil_binary.c index aaad364e..19cbc1b8 100644 --- a/libsepol/cil/src/cil_binary.c +++ b/libsepol/cil/src/cil_binary.c @@ -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) { diff --git a/libsepol/src/write.c b/libsepol/src/write.c index c4c84ac4..e75b9abc 100644 --- a/libsepol/src/write.c +++ b/libsepol/src/write.c @@ -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);