From: Janusz Sobczak Date: Mon, 9 Aug 2010 11:22:42 +0000 (+0200) Subject: gpu: pvr: Remove FIRST_PHYSICAL_PFN define. X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9ecb63bd6670d9c5977e3e68b0dfdc52a676eda;p=sgx.git gpu: pvr: Remove FIRST_PHYSICAL_PFN define. The unsigned comparison pfn >= 0 is always true. Removed FIRST_PHYSICAL_PFN define and simplified the condition. Signed-off-by: Janusz Sobczak Signed-off-by: Imre Deak --- diff --git a/pvr/mmap.c b/pvr/mmap.c index 5e3cfc9..1c094aa 100644 --- a/pvr/mmap.c +++ b/pvr/mmap.c @@ -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)