mm/memblock.c:843: pointless test ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

mm/memblock.c:843:11: warning: comparison of unsigned expression>= 0 is always true [-Wtype-limits]

Source code is

    if (*idx>= 0 && *idx < type->cnt) {

but

void __init_memblock __next_reserved_mem_region(u64 *idx,

Suggest avoid pointless test.


Regards

David Binderman
 		 	   		  
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]