esp4: remove assignment in if condition
authorFabian Frederick <fabf@skynet.be>
Tue, 4 Nov 2014 21:54:36 +0000 (22:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2014 21:57:49 +0000 (16:57 -0500)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/esp4.c

index 360b565..d2bf02e 100644 (file)
@@ -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);