tun: Remove unnecessary tun_get_by_name
commit74a3e5a71c9b54c63bff978e9cafbcef67600f0b
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 20 Jan 2009 10:56:20 +0000 (20 10:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jan 2009 00:00:43 +0000 (21 16:00 -0800)
treeb6c3c043a40e62e5ba0e922c90545ee2a986616f
parentf5882c30508c1e3c4fbbdaa9ca08d0922c5fb071
tun: Remove unnecessary tun_get_by_name

Currently the tun driver keeps a private list of tun devices for what
appears to be a small gain in performance when reconnecting a file
descriptor to an existing tun or tap device.  So simplify the code by
removing it.

Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c