Minor cleanup of CIS parsing.

This commit is contained in:
Warner Losh 2006-06-12 03:28:42 +00:00
parent 9dfcc6624c
commit 1acd1e20a1

View File

@ -641,7 +641,6 @@ cardbus_parse_cis(device_t cbdev, device_t child,
int
cardbus_do_cis(device_t cbdev, device_t child)
{
int ret;
struct tuple_callbacks init_callbacks[] = {
MAKETUPLE(LONGLINK_CB, unhandled),
MAKETUPLE(INDIRECT, unhandled),
@ -658,8 +657,5 @@ cardbus_do_cis(device_t cbdev, device_t child)
MAKETUPLE(GENERIC, generic),
};
ret = cardbus_parse_cis(cbdev, child, init_callbacks, NULL);
if (ret < 0)
return (ret);
return 0;
return (cardbus_parse_cis(cbdev, child, init_callbacks, NULL));
}