Skip to contentSkip to conversation

llc: cleanup: remove dead code from llc_init()

PATCH Applied Dan Carpenter 3 participants 3 messages Mar 24, 2010

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

PATCH 1/1 llc: cleanup: remove dead code from llc_init()

We don't need "dev" any more after:

	a5a04819c5740cb1aa217af2cc8f5ef26f33d744
	[LLC]: station source mac address
net/llc/llc_core.c +0 -6
index 78167e8..2bb0ddf 100644
@@ -144,12 +144,6 @@ static struct packet_type llc_tr_packet_type __read_mostly = {
 
 static int __init llc_init(void)
 {
-	struct net_device *dev;
-
-	dev = first_net_device(&init_net);
-	if (dev != NULL)
-		dev = next_net_device(dev);
-
 	dev_add_pack(&llc_packet_type);
 	dev_add_pack(&llc_tr_packet_type);
 	return 0;
maintainer Applied
#2 lore raw

From: Arnaldo Carvalho de Melo <[email protected]>
Date: Wed, 24 Mar 2010 10:54:18 -0300

Quoted 11 lines

Em Wed, Mar 24, 2010 at 02:55:10PM +0300, Dan Carpenter escreveu:

Quoted 5 lines

We don't need "dev" any more after:

	a5a04819c5740cb1aa217af2cc8f5ef26f33d744
	[LLC]: station source mac address

Old leftovers, well spotted, Dave, please apply.

Applied, thanks.