public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] MdeModulePkg/UdfDxe: Remove negative comparison of unsigned number
@ 2017-09-13  4:44 Paulo Alcantara
  2017-09-13  5:08 ` Zeng, Star
  0 siblings, 1 reply; 11+ messages in thread
From: Paulo Alcantara @ 2017-09-13  4:44 UTC (permalink / raw)
  To: edk2-devel; +Cc: Paulo Alcantara, Star Zeng, Eric Dong, Ruiyu Ni, Dandan Bi

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>
---
 MdeModulePkg/Universal/Disk/UdfDxe/FileSystemOperations.c | 3 ---
 1 file changed, 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;
         }
-- 
2.11.0



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-09-15 14:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-13  4:44 [PATCH] MdeModulePkg/UdfDxe: Remove negative comparison of unsigned number Paulo Alcantara
2017-09-13  5:08 ` Zeng, Star
2017-09-13  5:47   ` Paulo Alcantara
2017-09-13  6:29     ` Zeng, Star
2017-09-15  6:14     ` Zeng, Star
2017-09-15  6:48       ` Paulo Alcantara
2017-09-15 14:31         ` Zeng, Star
2017-09-15 10:14       ` Laszlo Ersek
2017-09-15 13:02         ` Ni, Ruiyu
2017-09-15 14:53           ` Laszlo Ersek
2017-09-15 14:25         ` Zeng, Star

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox