diff options
author | Hagen Paul Pfeifer <hagen@jauu.net> | 2010-03-31 16:54:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-02 03:38:47 +0200 |
commit | d4fc6dbb5ae51430e35b2005f6d68938861f8d8b (patch) | |
tree | 20a9c2a539787fb5c7dca8b6dad79e5750784073 /net/ipv4/ip_sockglue.c | |
parent | acenic: use the dma state API instead of the pci equivalents (diff) | |
download | linux-d4fc6dbb5ae51430e35b2005f6d68938861f8d8b.tar.xz linux-d4fc6dbb5ae51430e35b2005f6d68938861f8d8b.zip |
ipv4: remove redundant verification code
The check if error signaling is wanted (inet->recverr != 0) is done by
the caller: raw.c:raw_err() and udp.c:__udp4_lib_err(), so there is no
need to check this condition again.
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_sockglue.c')
-rw-r--r-- | net/ipv4/ip_sockglue.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index 644dc43a55de..f4b47acbf7b6 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c @@ -286,12 +286,8 @@ int ip_ra_control(struct sock *sk, unsigned char on, void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err, __be16 port, u32 info, u8 *payload) { - struct inet_sock *inet = inet_sk(sk); struct sock_exterr_skb *serr; - if (!inet->recverr) - return; - skb = skb_clone(skb, GFP_ATOMIC); if (!skb) return; |