[bhnd] handle unknown bhnd port type.

This commit is contained in:
Adrian Chadd 2016-05-05 19:54:17 +00:00
parent 3b0750141a
commit 0aba90e3bc

View File

@ -187,6 +187,11 @@ siba_dinfo_get_port(struct siba_devinfo *dinfo, bhnd_port_type port_type,
return (NULL);
case BHND_PORT_AGENT:
return (NULL);
default:
printf("%s: unknown port_type (%d)\n",
__func__,
port_type);
return (NULL);
}
}
@ -369,4 +374,4 @@ siba_parse_admatch(uint32_t am, uint32_t *addr, uint32_t *size)
}
return (0);
}
}