mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
parser: eliminate redundant/dead code
The debugging code for profile entries contains a check to ensure that it's not NULL, but the list iterator macro already ensures that the iteration will stop if the item is NULL, making the check redundant. Coverity CID #55983 Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Tyler Hicks <tyhicks@canonical.com>
This commit is contained in:
parent
90b352c2ae
commit
4dcfa7db35
1 changed files with 0 additions and 3 deletions
|
@ -810,9 +810,6 @@ void debug_cod_entries(struct cod_entry *list)
|
|||
printf("--- Entries ---\n");
|
||||
|
||||
list_for_each(list, item) {
|
||||
if (!item)
|
||||
printf("Item is NULL!\n");
|
||||
|
||||
printf("Mode:\t");
|
||||
if (HAS_CHANGE_PROFILE(item->mode))
|
||||
printf(" change_profile");
|
||||
|
|
Loading…
Add table
Reference in a new issue