/* Unbind cp from application incarnation (called by cp destructor)  */
void ip_vs_unbind_app(struct ip_vs_conn *cp)
/* Unbind cp from application incarnation (called by cp destructor)  */
void ip_vs_unbind_app(struct ip_vs_conn *cp)
{
	struct ip_vs_app *inc = cp->app;
	if (!inc)
		return;
	if (inc->unbind_conn)
		inc->unbind_conn(inc, cp);
	if (inc->done_conn)
		inc->done_conn(inc, cp);
	ip_vs_app_inc_put(inc);
	cp->app = NULL;
}