diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-11-04 16:54:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-04 16:57:49 -0500 |
commit | 05006e8c59050b2bab1bfe9cac631505d21122a3 (patch) | |
tree | 89ad36d2aa6c7aac48908b7124fd789db0d2325f | |
parent | 90284c2bc98502362c217c01a2d71dcbb1968abe (diff) |
esp4: remove assignment in if condition
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/esp4.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index 360b565918c4..d2bf02e0a678 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c | |||
@@ -392,8 +392,10 @@ static int esp_input(struct xfrm_state *x, struct sk_buff *skb) | |||
392 | if (elen <= 0) | 392 | if (elen <= 0) |
393 | goto out; | 393 | goto out; |
394 | 394 | ||
395 | if ((err = skb_cow_data(skb, 0, &trailer)) < 0) | 395 | err = skb_cow_data(skb, 0, &trailer); |
396 | if (err < 0) | ||
396 | goto out; | 397 | goto out; |
398 | |||
397 | nfrags = err; | 399 | nfrags = err; |
398 | 400 | ||
399 | assoclen = sizeof(*esph); | 401 | assoclen = sizeof(*esph); |