diff options
author | Hagen Paul Pfeifer <hagen@jauu.net> | 2010-03-31 10:54:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-01 21:38:47 -0400 |
commit | d4fc6dbb5ae51430e35b2005f6d68938861f8d8b (patch) | |
tree | 20a9c2a539787fb5c7dca8b6dad79e5750784073 /net/ipv4/ip_sockglue.c | |
parent | 430e55b11e9756bb7648fc1cdf5063e385cd6dec (diff) |
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, | |||
286 | void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err, | 286 | void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err, |
287 | __be16 port, u32 info, u8 *payload) | 287 | __be16 port, u32 info, u8 *payload) |
288 | { | 288 | { |
289 | struct inet_sock *inet = inet_sk(sk); | ||
290 | struct sock_exterr_skb *serr; | 289 | struct sock_exterr_skb *serr; |
291 | 290 | ||
292 | if (!inet->recverr) | ||
293 | return; | ||
294 | |||
295 | skb = skb_clone(skb, GFP_ATOMIC); | 291 | skb = skb_clone(skb, GFP_ATOMIC); |
296 | if (!skb) | 292 | if (!skb) |
297 | return; | 293 | return; |