etherswitch: Remove unused variable.

This commit is contained in:
John Baldwin 2022-04-08 17:25:14 -07:00
parent bce1b42f99
commit 683ca8034d

View File

@ -332,10 +332,8 @@ mdioproxy_rendezvous_callback(enum rendezvous_op op, struct rendezvous_entry *re
static void
mdioproxy_identify(driver_t *driver, device_t parent)
{
device_t child;
if (device_find_child(parent, driver->name, -1) == NULL) {
child = BUS_ADD_CHILD(parent, 0, driver->name, -1);
BUS_ADD_CHILD(parent, 0, driver->name, -1);
}
}