mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
esp4: remove assignment in if condition
Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
90284c2bc9
commit
05006e8c59
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue