Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2685fbb8 authored by Guillaume Nault's avatar Guillaume Nault Committed by David S. Miller
Browse files

l2tp: make l2tp_xmit_core() return void



It always returns 0, and nobody reads the return value anyway.

Signed-off-by: default avatarGuillaume Nault <g.nault@alphalink.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 363a341d
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -1007,7 +1007,7 @@ static int l2tp_build_l2tpv3_header(struct l2tp_session *session, void *buf)
	return bufp - optr;
	return bufp - optr;
}
}


static int l2tp_xmit_core(struct l2tp_session *session, struct sk_buff *skb,
static void l2tp_xmit_core(struct l2tp_session *session, struct sk_buff *skb,
			   struct flowi *fl, size_t data_len)
			   struct flowi *fl, size_t data_len)
{
{
	struct l2tp_tunnel *tunnel = session->tunnel;
	struct l2tp_tunnel *tunnel = session->tunnel;
@@ -1050,8 +1050,6 @@ static int l2tp_xmit_core(struct l2tp_session *session, struct sk_buff *skb,
		atomic_long_inc(&tunnel->stats.tx_errors);
		atomic_long_inc(&tunnel->stats.tx_errors);
		atomic_long_inc(&session->stats.tx_errors);
		atomic_long_inc(&session->stats.tx_errors);
	}
	}

	return 0;
}
}


/* If caller requires the skb to have a ppp header, the header must be
/* If caller requires the skb to have a ppp header, the header must be