]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/core/dev.c
[NETNS]: Consolidate hashes creation in netdev_init()
authorPavel Emelyanov <xemul@openvz.org>
Sun, 16 Sep 2007 22:40:33 +0000 (15:40 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:51:21 +0000 (16:51 -0700)
commit30d97d35851f40fd1c108d1b8904aca3c38d0126
treeaf45c94eceaa1e30c7df51852bfb4e6e33e67721
parentad7379d49458a863c520a73a3c36441c572f850e
[NETNS]: Consolidate hashes creation in netdev_init()

The dev_name_hash and the dev_index_hash are now booth kmalloc-ed
(and each element is properly initialized as usually) so I think
it's worth consolidating this code making it look nicer (and
saving 28 bytes of .text section ;) )

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c