summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2011-10-11 02:01:02 +0000
committerDavid S. Miller <davem@davemloft.net>2011-10-18 23:51:30 -0400
commitc113464d4351591de8791c0cadfc165836e5a725 (patch)
tree9c1fe9fa0e0ffc67273fe150a89bca9dc7c0afc9 /net
parent1d9743745bf5ba30b57986d8da33c4fa072c355b (diff)
downloadlinux-3.10-c113464d4351591de8791c0cadfc165836e5a725.tar.gz
linux-3.10-c113464d4351591de8791c0cadfc165836e5a725.tar.bz2
linux-3.10-c113464d4351591de8791c0cadfc165836e5a725.zip
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 <steffen.klassert@secunet.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/datagram.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c
index b46e9f88ce3..e2480691c22 100644
--- a/net/ipv6/datagram.c
+++ b/net/ipv6/datagram.c
@@ -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;