2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

Use list_remove_at macro in mount.cc:extract_flags

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
Ryan Lee
2024-11-14 10:27:07 -08:00
parent 88719dbb7b
commit ae5a16bfd1

View File

@@ -363,11 +363,7 @@ static unsigned int extract_flags(struct value_list **list, unsigned int *inv)
" => req: 0x%x inv: 0x%x\n",
entry->value, mnt_opts_table[i].set,
mnt_opts_table[i].clear, flags, invflags);
if (prev)
prev->next = tmp;
if (entry == *list)
*list = tmp;
entry->next = NULL;
list_remove_at(*list, prev, entry);
free_value_list(entry);
} else
prev = entry;