gpu: pvr: Remove FIRST_PHYSICAL_PFN define.
authorJanusz Sobczak <janusz.sobczak@imgtec.com>
Mon, 9 Aug 2010 11:22:42 +0000 (13:22 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:09:42 +0000 (21:09 +0300)
The unsigned comparison pfn >= 0 is always true.
Removed FIRST_PHYSICAL_PFN define and simplified the condition.

Signed-off-by: Janusz Sobczak <janusz.sobczak@imgtec.com>
Signed-off-by: Imre Deak <imre.deak@nokia.com>
pvr/mmap.c

index 5e3cfc9..1c094aa 100644 (file)
@@ -61,7 +61,6 @@ static u32 g_ui32RegisteredAreas;
 static u32 g_ui32TotalByteSize;
 #endif
 
-#define        FIRST_PHYSICAL_PFN      0
 #define        LAST_PHYSICAL_PFN       0x7ffffffful
 #define        FIRST_SPECIAL_PFN       (LAST_PHYSICAL_PFN + 1)
 #define        LAST_SPECIAL_PFN        0xfffffffful
@@ -70,7 +69,7 @@ static u32 g_ui32TotalByteSize;
 
 static inline IMG_BOOL PFNIsPhysical(u32 pfn)
 {
-       return pfn >= FIRST_PHYSICAL_PFN && pfn <= LAST_PHYSICAL_PFN;
+       return pfn <= LAST_PHYSICAL_PFN;
 }
 
 static inline IMG_BOOL PFNIsSpecial(u32 pfn)