/* hvc_iucv_cleanup() - Clean up and reset a z/VM IUCV HVC instance. @priv: Pointer to the struct  */
static void hvc_iucv_cleanup(struct hvc_iucv_private *priv)
/* hvc_iucv_cleanup() - Clean up and reset a z/VM IUCV HVC instance. @priv: Pointer to the struct  */
static void hvc_iucv_cleanup(struct hvc_iucv_private *priv)
{
	destroy_tty_buffer_list(&priv->tty_outqueue);
	destroy_tty_buffer_list(&priv->tty_inqueue);
	priv->tty_state = TTY_CLOSED;
	priv->iucv_state = IUCV_DISCONN;
	priv->sndbuf_len = 0;
}