Skip to contentSkip to conversation

h8300: bad test of memory_end in setup_arch()

DISCUSSION Roel Kluin 1 participant 1 message Aug 27, 2009

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

in arch/h8300/kernel/setup.c:116:

	if ((memory_end < CONFIG_BLKDEV_RESERVE_ADDRESS) && 
            (memory_end > CONFIG_BLKDEV_RESERVE_ADDRESS))
            /* overlap userarea */
            memory_end = CONFIG_BLKDEV_RESERVE_ADDRESS;

This will always evaluate to false. what is this supposed to do? is this &&/|| confusion? Can we simply replace this with:

	memory_end = CONFIG_BLKDEV_RESERVE_ADDRESS;

Roel