diff options
| author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2021-09-03 22:01:36 +0200 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2025-01-17 14:48:54 -0500 |
| commit | b560c523623bf8b32142220401de86ed44338c3d (patch) | |
| tree | 0dc2f63c53041118386851c9a7da249f4d49fc89 /lib/simple_file.c | |
| parent | 3e6089582206f868dc6aba828c2b5f6490ed2777 (diff) | |
| download | efi-boot-shim-b560c523623bf8b32142220401de86ed44338c3d.tar.gz efi-boot-shim-b560c523623bf8b32142220401de86ed44338c3d.zip | |
MokManager: remove redundant logical constraints
CertList->SignatureSize is of type UINT32 which is always positive.
If CertList->SignatureListSize == 0, then
CertList->SignatureListSize <= CertList->SignatureSize
is also true.
Remove the redundant CertList->SignatureListSize == 0 checks.
A message "Corrupted signature list" is better suited then
"Invalid MOK detected! Ignoring MOK List." in this case.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib/simple_file.c')
0 files changed, 0 insertions, 0 deletions
