Remove unsigned comparison < 0

Found by:	LLVM
Reviewed by:	zbb
This commit is contained in:
Kevin Lo 2013-10-15 09:29:36 +00:00
parent d35acb5099
commit 1fa042f0ad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=256511

View File

@ -431,7 +431,7 @@ fdt_localbus_devmap(phandle_t dt_node, struct pmap_devmap *fdt_devmap,
bank = fdt_data_get((void *)rangesptr, 1);
rangesptr += 1;
if (bank < 0 || bank > MV_LOCALBUS_MAX_BANKS) {
if (bank > MV_LOCALBUS_MAX_BANKS) {
/* Bank out of range */
rangesptr += ((addr_cells - 1) + par_addr_cells +
size_cells);