Skip to contentSkip to conversation

remove unused variable skb in dev_deactivate_queue function

PATCH Applied Daniel Lezcano 2 participants 2 messages Jul 21, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove unused variable skb in dev_deactivate_queue function

Subject: [SCHED] remove unused variable skb in dev_deactivate_queue function
From: Daniel Lezcano <[email protected]>

Removed unused variable 'skb' in the dev_deactivate_queue function

---
 net/sched/sch_generic.c |    3 ---
 1 file changed, 3 deletions(-)
net/sched/sch_generic.c +0 -3
Index: net-2.6/net/sched/sch_generic.c
===================================================================
@@ -576,7 +576,6 @@ static void dev_deactivate_queue(struct 
 				 void *_qdisc_default)
 {
 	struct Qdisc *qdisc_default = _qdisc_default;
-	struct sk_buff *skb = NULL;
 	struct Qdisc *qdisc;
 
 	qdisc = dev_queue->qdisc;
@@ -588,8 +587,6 @@ static void dev_deactivate_queue(struct 
 
 		spin_unlock_bh(qdisc_lock(qdisc));
 	}
-
-	kfree_skb(skb);
 }
 
 static bool some_qdisc_is_running(struct net_device *dev, int lock)
maintainer Applied
#1 lore raw

From: Daniel Lezcano <[email protected]>
Date: Mon, 21 Jul 2008 18:01:31 +0200

Quoted 5 lines

[SCHED] remove unused variable skb in dev_deactivate_queue function

Removed unused variable 'skb' in the dev_deactivate_queue function

Applied, thanks Daniel.

Please use "subsystem_in_lowercase: Foo bar baz." format for commit header lines in the future.

Thanks again.