/* Return @port's bonding struct, or NULL if it can't be found.  */
static struct bonding* __get_bond_by_port(struct port *port)
/* Return @port's bonding struct, or NULL if it can't be found.  */
static struct bonding* __get_bond_by_port(struct port *port)
{
	if (port->slave == NULL) {
		return NULL;
	}
	return bond_get_bond_by_slave(port->slave);
}