/* Throw away all pending data and cancel the corking. Socket is locked.  */
void udp_flush_pending_frames(struct sock *sk)
/* Throw away all pending data and cancel the corking. Socket is locked.  */
void udp_flush_pending_frames(struct sock *sk)
{
	struct udp_sock *up = udp_sk(sk);
	if (up->pending) {
		up->len = 0;
		up->pending = 0;
		ip_flush_pending_frames(sk);
	}
}