Skip to content

Commit

Permalink
xfrm: fix set but not used warning in xfrm_policy_queue_process()
Browse files Browse the repository at this point in the history
err was set but unused.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
  • Loading branch information
Fabian Frederick authored and klassert committed Oct 27, 2014
1 parent 49cc91f commit 5c1e9f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/xfrm/xfrm_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,6 @@ xfrm_resolve_and_create_bundle(struct xfrm_policy **pols, int num_pols,

static void xfrm_policy_queue_process(unsigned long arg)
{
int err = 0;
struct sk_buff *skb;
struct sock *sk;
struct dst_entry *dst;
Expand Down Expand Up @@ -1941,7 +1940,7 @@ static void xfrm_policy_queue_process(unsigned long arg)
skb_dst_drop(skb);
skb_dst_set(skb, dst);

err = dst_output(skb);
dst_output(skb);
}

out:
Expand Down

0 comments on commit 5c1e9f2

Please sign in to comment.