Changeset 9120b69 in mainline


Ignore:
Timestamp:
2013-08-03T17:49:17Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
296a80e
Parents:
2e842f2
Message:

arm32, boot: codestyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/src/mm.c

    r2e842f2 r9120b69  
    6060static inline int section_cacheable(pfn_t section)
    6161{
     62        const unsigned long address = section << PTE_SECTION_SHIFT;
    6263#ifdef MACHINE_gta02
    63         unsigned long address = section << PTE_SECTION_SHIFT;
    64 
    65         if (address >= GTA02_IOMEM_START && address < GTA02_IOMEM_END)
    66                 return 0;
    67         else
     64        if (address < GTA02_IOMEM_START || address >= GTA02_IOMEM_END)
    6865                return 1;
    6966#elif defined MACHINE_beagleboardxm
    70         const unsigned long address = section << PTE_SECTION_SHIFT;
    7167        if (address >= BBXM_RAM_START && address < BBXM_RAM_END)
    7268                return 1;
    7369#elif defined MACHINE_beaglebone
    74         const unsigned long address = section << PTE_SECTION_SHIFT;
    7570        if (address >= AM335x_RAM_START && address < AM335x_RAM_END)
    7671                return 1;
    7772#endif
    78         return 0;
     73        return address * 0;
    7974}
    8075
Note: See TracChangeset for help on using the changeset viewer.