Skip to content

Commit

Permalink
pkt_sched: Remove unused variable skb in dev_deactivate_queue function.
Browse files Browse the repository at this point in the history
Removed unused variable 'skb' in the dev_deactivate_queue function

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Daniel Lezcano authored and David S. Miller committed Jul 21, 2008
1 parent fd24c4a commit c3ee841
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/sched/sch_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,6 @@ static void dev_deactivate_queue(struct net_device *dev,
void *_qdisc_default)
{
struct Qdisc *qdisc_default = _qdisc_default;
struct sk_buff *skb = NULL;
struct Qdisc *qdisc;

qdisc = dev_queue->qdisc;
Expand All @@ -588,8 +587,6 @@ static void dev_deactivate_queue(struct net_device *dev,

spin_unlock_bh(qdisc_lock(qdisc));
}

kfree_skb(skb);
}

static bool some_qdisc_is_running(struct net_device *dev, int lock)
Expand Down

0 comments on commit c3ee841

Please sign in to comment.