Commit 05006e8c authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller

esp4: remove assignment in if condition

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 90284c2b
...@@ -392,8 +392,10 @@ static int esp_input(struct xfrm_state *x, struct sk_buff *skb) ...@@ -392,8 +392,10 @@ static int esp_input(struct xfrm_state *x, struct sk_buff *skb)
if (elen <= 0) if (elen <= 0)
goto out; goto out;
if ((err = skb_cow_data(skb, 0, &trailer)) < 0) err = skb_cow_data(skb, 0, &trailer);
if (err < 0)
goto out; goto out;
nfrags = err; nfrags = err;
assoclen = sizeof(*esph); assoclen = sizeof(*esph);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment