mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 08:34:07 +02:00
MdeModulePkg/UdfDxe: Use compare operator for non-boolean comparisons
Cc: Paulo Alcantara <pcacjr@zytor.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Dandan Bi <dandan.bi@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Paulo Alcantara <pcacjr@zytor.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
fedec0a38e
commit
12b83f5664
@ -1255,7 +1255,7 @@ InternalFindFile (
|
|||||||
BlockIo,
|
BlockIo,
|
||||||
DiskIo,
|
DiskIo,
|
||||||
Volume,
|
Volume,
|
||||||
Parent->FileIdentifierDesc ?
|
(Parent->FileIdentifierDesc != NULL) ?
|
||||||
&Parent->FileIdentifierDesc->Icb :
|
&Parent->FileIdentifierDesc->Icb :
|
||||||
Icb,
|
Icb,
|
||||||
Parent->FileEntry,
|
Parent->FileEntry,
|
||||||
@ -2117,7 +2117,7 @@ SetFileInfo (
|
|||||||
//
|
//
|
||||||
// Calculate the needed size for the EFI_FILE_INFO structure.
|
// Calculate the needed size for the EFI_FILE_INFO structure.
|
||||||
//
|
//
|
||||||
FileInfoLength = sizeof (EFI_FILE_INFO) + (FileName ?
|
FileInfoLength = sizeof (EFI_FILE_INFO) + ((FileName != NULL) ?
|
||||||
StrSize (FileName) :
|
StrSize (FileName) :
|
||||||
sizeof (CHAR16));
|
sizeof (CHAR16));
|
||||||
if (*BufferSize < FileInfoLength) {
|
if (*BufferSize < FileInfoLength) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user