Skip to content

Commit 048ae41

Browse files
stefanbergermimizohar
authored andcommitted
integrity: Fix sparse warnings in keyring_handler
Fix the following sparse warnings: CHECK security/integrity/platform_certs/keyring_handler.c security/integrity/platform_certs/keyring_handler.c:76:16: warning: Using plain integer as NULL pointer security/integrity/platform_certs/keyring_handler.c:91:16: warning: Using plain integer as NULL pointer security/integrity/platform_certs/keyring_handler.c:106:16: warning: Using plain integer as NULL pointer Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
1 parent 4c41186 commit 048ae41

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

security/integrity/platform_certs/keyring_handler.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ __init efi_element_handler_t get_handler_for_db(const efi_guid_t *sig_type)
7373
{
7474
if (efi_guidcmp(*sig_type, efi_cert_x509_guid) == 0)
7575
return add_to_platform_keyring;
76-
return 0;
76+
return NULL;
7777
}
7878

7979
/*
@@ -88,7 +88,7 @@ __init efi_element_handler_t get_handler_for_mok(const efi_guid_t *sig_type)
8888
else
8989
return add_to_platform_keyring;
9090
}
91-
return 0;
91+
return NULL;
9292
}
9393

9494
/*
@@ -103,5 +103,5 @@ __init efi_element_handler_t get_handler_for_dbx(const efi_guid_t *sig_type)
103103
return uefi_blacklist_binary;
104104
if (efi_guidcmp(*sig_type, efi_cert_x509_guid) == 0)
105105
return uefi_revocation_list_x509;
106-
return 0;
106+
return NULL;
107107
}

0 commit comments

Comments
 (0)