The patch titled drivers/char/mem.c: clean up the code has been removed from the -mm tree. Its filename was drivers-char-memc-clean-up-the-code.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: drivers/char/mem.c: clean up the code From: Changli Gao <xiaosuo@xxxxxxxxx> Reduce the lines of code and simplify the logic. Signed-off-by: Changli Gao <xiaosuo@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/char/mem.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff -puN drivers/char/mem.c~drivers-char-memc-clean-up-the-code drivers/char/mem.c --- a/drivers/char/mem.c~drivers-char-memc-clean-up-the-code +++ a/drivers/char/mem.c @@ -47,10 +47,7 @@ static inline unsigned long size_inside_ #ifndef ARCH_HAS_VALID_PHYS_ADDR_RANGE static inline int valid_phys_addr_range(unsigned long addr, size_t count) { - if (addr + count > __pa(high_memory)) - return 0; - - return 1; + return addr + count <= __pa(high_memory); } static inline int valid_mmap_phys_addr_range(unsigned long pfn, size_t size) _ Patches currently in -mm which might be from xiaosuo@xxxxxxxxx are origin.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html