cpu/x86/pae/pgtbl.c: Unsigned comparison < 0 always false
Comparison of unsigned expression < 0 is always false. Change-Id: Idf4e7846b50f4376a5d33515681efbd773d1caca Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/6146 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
parent
2f9b3afc84
commit
4d7539eefd
|
@ -61,7 +61,7 @@ void *map_2M_page(unsigned long page)
|
||||||
void *result;
|
void *result;
|
||||||
int i;
|
int i;
|
||||||
index = cpu_index();
|
index = cpu_index();
|
||||||
if ((index < 0) || (index >= CONFIG_MAX_CPUS)) {
|
if (index >= CONFIG_MAX_CPUS) {
|
||||||
return MAPPING_ERROR;
|
return MAPPING_ERROR;
|
||||||
}
|
}
|
||||||
window = page >> 10;
|
window = page >> 10;
|
||||||
|
|
Loading…
Reference in New Issue