diff options
author | Paulo Alcantara <pcacjr@zytor.com> | 2017-09-13 12:44:54 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2017-09-13 14:28:21 +0800 |
commit | 35aec96c221b643b26e78305f6acda8ab0647cf3 (patch) | |
tree | dd3733db661980fb21b00505f505d967f3e6e40f /MdeModulePkg/Universal/Disk | |
parent | 62ef40c4959e7529053c4f0987e5dafc34880691 (diff) | |
download | edk2-35aec96c221b643b26e78305f6acda8ab0647cf3.tar.gz |
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>
Diffstat (limited to 'MdeModulePkg/Universal/Disk')
-rw-r--r-- | MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c b/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c index 7286265373..2039f80289 100644 --- a/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c +++ b/MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c @@ -1082,9 +1082,6 @@ ReadFile ( if (FilePosition + ExtentLength > ReadFileInfo->FilePosition) {
Offset = ReadFileInfo->FilePosition - FilePosition;
- if (Offset < 0) {
- Offset = -(Offset);
- }
} else {
Offset = 0;
}
|