* mm/memblock.c:843: pointless test ?
@ 2016-03-22 19:07 David Binderman
0 siblings, 0 replies; only message in thread
From: David Binderman @ 2016-03-22 19:07 UTC (permalink / raw)
To: linux-mm
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@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-03-22 19:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-22 19:07 mm/memblock.c:843: pointless test ? David Binderman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox