mirror of
https://github.com/SELinuxProject/selinux
synced 2025-05-08 10:38:01 +00:00
checkpolicy: remove unneeded queue_head()
Just check the value of the subsequent queue_remove() call. Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
parent
158fb95ef2
commit
21cbacb668
@ -4686,14 +4686,13 @@ static int parse_security_context(context_struct_t * c)
|
|||||||
|
|
||||||
if (mlspol) {
|
if (mlspol) {
|
||||||
/* extract the low sensitivity */
|
/* extract the low sensitivity */
|
||||||
id = (char *)queue_head(id_queue);
|
id = (char *)queue_remove(id_queue);
|
||||||
if (!id) {
|
if (!id) {
|
||||||
yyerror("no sensitivity name for sid context"
|
yyerror("no sensitivity name for sid context"
|
||||||
" definition?");
|
" definition?");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
id = (char *)queue_remove(id_queue);
|
|
||||||
for (l = 0; l < 2; l++) {
|
for (l = 0; l < 2; l++) {
|
||||||
levdatum = (level_datum_t *)
|
levdatum = (level_datum_t *)
|
||||||
hashtab_search(policydbp->p_levels.table,
|
hashtab_search(policydbp->p_levels.table,
|
||||||
|
Loading…
Reference in New Issue
Block a user