Skip to content

Commit

Permalink
llc: cleanup: remove dead code from llc_init()
Browse files Browse the repository at this point in the history
We don't need "dev" any more after:
	a5a0481
	[LLC]: station source mac address

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Mar 24, 2010
1 parent e51d739 commit a3dcce9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions net/llc/llc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a3dcce9

Please sign in to comment.