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:
Hao Wu 2017-09-14 10:52:47 +08:00
parent fedec0a38e
commit 12b83f5664

View File

@ -1255,7 +1255,7 @@ InternalFindFile (
BlockIo,
DiskIo,
Volume,
Parent->FileIdentifierDesc ?
(Parent->FileIdentifierDesc != NULL) ?
&Parent->FileIdentifierDesc->Icb :
Icb,
Parent->FileEntry,
@ -2117,7 +2117,7 @@ SetFileInfo (
//
// 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) :
sizeof (CHAR16));
if (*BufferSize < FileInfoLength) {