/* Return the port of the first slave in @bond, or NULL if it can't be found.  */
static struct port* __get_first_port(struct bonding *bond)
/* Return the port of the first slave in @bond, or NULL if it can't be found.  */
static struct port* __get_first_port(struct bonding *bond)
{
	if (bond->slave_cnt == 0) {
		return NULL;
	}
	return &(SLAVE_AD_INFO(bond->first_slave).port);
}