mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/UdfDxe: Remove negative comparison of unsigned number
This patch gets rid of a negative comparison of an UINT64 type (Offset) as it'll never evaluate to true. Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Dandan Bi <dandan.bi@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Reported-by: Star Zeng <star.zeng@intel.com> Signed-off-by: Paulo Alcantara <pcacjr@zytor.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
parent
62ef40c495
commit
35aec96c22
|
@ -1082,9 +1082,6 @@ ReadFile (
|
|||
|
||||
if (FilePosition + ExtentLength > ReadFileInfo->FilePosition) {
|
||||
Offset = ReadFileInfo->FilePosition - FilePosition;
|
||||
if (Offset < 0) {
|
||||
Offset = -(Offset);
|
||||
}
|
||||
} else {
|
||||
Offset = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue