summaryrefslogtreecommitdiffstats
path: root/net/ipv4/esp4.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-11-04 22:54:36 +0100
committerDavid S. Miller <davem@davemloft.net>2014-11-04 22:57:49 +0100
commit05006e8c59050b2bab1bfe9cac631505d21122a3 (patch)
tree89ad36d2aa6c7aac48908b7124fd789db0d2325f /net/ipv4/esp4.c
parentMerge branch 'ecn_via_routing_table' (diff)
downloadlinux-05006e8c59050b2bab1bfe9cac631505d21122a3.tar.xz
linux-05006e8c59050b2bab1bfe9cac631505d21122a3.zip
esp4: remove assignment in if condition
Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/esp4.c')
-rw-r--r--net/ipv4/esp4.c4
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)
if (elen <= 0)
goto out;
- if ((err = skb_cow_data(skb, 0, &trailer)) < 0)
+ err = skb_cow_data(skb, 0, &trailer);
+ if (err < 0)
goto out;
+
nfrags = err;
assoclen = sizeof(*esph);