Skip to contentSkip to conversation

compile fix net/core/dev.c

PATCH carbonated beverage 1 participant 1 message Jun 21, 2004 Networking

lore
Share & tools
lore
#0 lore raw

Tiny patch to make gcc 2.95.4 happy. Declare a variable before code preceeds it.

-- DN
Daniel

===== net/core/dev.c 1.147 vs edited =====

net/core/dev.c +3 -1
@@ -1406,8 +1406,10 @@
 	   Either shot noqueue qdisc, it is even simpler 8)
 	 */
 	if (dev->flags & IFF_UP) {
+		int cpu;
+
 		preempt_disable();
-		int cpu = smp_processor_id();
+		cpu = smp_processor_id();
 
 		if (dev->xmit_lock_owner != cpu) {