]> rtime.felk.cvut.cz Git - arc.git/blobdiff - arch/ppc/mpc55xx/drivers/flash_h7f_c90.c
Fls fix and general cleaning for GPT
[arc.git] / arch / ppc / mpc55xx / drivers / flash_h7f_c90.c
index 050ed22668fbd18e18608b2a9cd5817bef47fc13..545a94683ce36c132ce0952fa0664f1429d7f0cd 100644 (file)
@@ -218,8 +218,8 @@ uint32_t Flash_ProgramPageStart( const FlashType *fPtr, uint32_t *to, uint32_t *
     for (int bank = 0; bank < FLASH_BANK_CNT; bank++) {
         bPtr = &fPtr[bank];
 
-        affected = OVERLAP( (uintptr_t)to,
-                       (uintptr_t)to + *size - 1,
+        affected = OVERLAP( *to,
+                       *to + *size - 1,
                        bPtr->sectAddr[0],
                        bPtr->sectAddr[0] + bPtr->bankSize-1);
         if( affected == false ) {