ipv6: Remove superfluous NULL pointer check in ipv6_local_rxpmtu
Subsystems (2)
PATCH 1/1 ipv6: Remove superfluous NULL pointer check in ipv6_local_rxpmtu
The pointer to mtu_info is taken from the common buffer of the skb, thus it can't be a NULL pointer. This patch removes this check on mtu_info.
Signed-off-by Steffen Klassert <[email protected]>
--- net/ipv6/datagram.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
net/ipv6/datagram.c +0 -4
@@ -297,10 +297,6 @@ void ipv6_local_rxpmtu(struct sock *sk, struct flowi6 *fl6, u32 mtu)ipv6_addr_copy (&iph->daddr, &fl6->daddr); mtu_info =IP6CBMTU (skb); -if (!mtu_info) { -kfree_skb (skb); -return ; - } mtu_info->ip6m_mtu = mtu; mtu_info->ip6m_addr.sin6_family =AF_INET6 ;
Signature · 1 line
1.7.0.4
From: Steffen Klassert <[email protected]>
Date: Tue, 11 Oct 2011 14:01:02 +0200
Quoted 5 lines
The pointer to
mtu_infois taken from the common buffer of the skb, thus it can't be a NULL pointer. This patch removes this check onmtu_info.Signed-off-by Steffen Klassert <[email protected]>
Applied.