Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

esp4: remove assignment in if condition

parent 90284c2b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);