aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorDaniel Lezcano <dlezcano@fr.ibm.com>2008-07-21 12:18:07 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-21 12:18:07 -0400
commitc3ee84163e5bc0dc2e1ccf1d3fc412debca73bab (patch)
tree9b6319d2abab9ab6e4692dfd71ff4c38dfe7f997 /net/sched
parentfd24c4af6e82231391fa09875ae6378fa1399f0f (diff)
pkt_sched: Remove unused variable skb in dev_deactivate_queue function.
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>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_generic.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index 0ddf69286f92..09dead335805 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -576,7 +576,6 @@ static void dev_deactivate_queue(struct net_device *dev,
576 void *_qdisc_default) 576 void *_qdisc_default)
577{ 577{
578 struct Qdisc *qdisc_default = _qdisc_default; 578 struct Qdisc *qdisc_default = _qdisc_default;
579 struct sk_buff *skb = NULL;
580 struct Qdisc *qdisc; 579 struct Qdisc *qdisc;
581 580
582 qdisc = dev_queue->qdisc; 581 qdisc = dev_queue->qdisc;
@@ -588,8 +587,6 @@ static void dev_deactivate_queue(struct net_device *dev,
588 587
589 spin_unlock_bh(qdisc_lock(qdisc)); 588 spin_unlock_bh(qdisc_lock(qdisc));
590 } 589 }
591
592 kfree_skb(skb);
593} 590}
594 591
595static bool some_qdisc_is_running(struct net_device *dev, int lock) 592static bool some_qdisc_is_running(struct net_device *dev, int lock)