From: Dan Carpenter Date: Wed, 24 Mar 2010 01:55:10 +0000 (+0000) Subject: llc: cleanup: remove dead code from llc_init() X-Git-Tag: MMI-PSA29.97-13-9~23873^2~700 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3dcce97b285ba54810f38fe2eccc295d69a76ce;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git llc: cleanup: remove dead code from llc_init() We don't need "dev" any more after: a5a04819c5740cb1aa217af2cc8f5ef26f33d744 [LLC]: station source mac address Signed-off-by: Dan Carpenter Acked-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller --- diff --git a/net/llc/llc_core.c b/net/llc/llc_core.c index 78167e81dfeb..2bb0ddff8c0f 100644 --- a/net/llc/llc_core.c +++ b/net/llc/llc_core.c @@ -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;