/* vpd_get_packet() - returns next VPD packet or NULL.  */
static vpd_packet_t* vpd_get_packet(vpd_packet_t *vpd_packet)
/* vpd_get_packet() - returns next VPD packet or NULL.  */
static vpd_packet_t* vpd_get_packet(vpd_packet_t *vpd_packet)
{
    vpd_packet_t *packet = vpd_packet;
    if (packet != NULL) {
	if (packet->identifier == VPD_PID_TERM)
	    return NULL;
	else
	    packet = (vpd_packet_t *)((char *)packet + packet->size + 2);
    }
    return packet;
}