Re: [PATCH][NETNS] Consolidate hashes creation in netdev_init()

2007-09-16 Thread David Miller
From: Pavel Emelyanov <[EMAIL PROTECTED]> Date: Fri, 14 Sep 2007 12:40:49 +0400 > 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 o

[PATCH][NETNS] Consolidate hashes creation in netdev_init()

2007-09-14 Thread Pavel Emelyanov
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 <[EMAIL PROTECTED]> --- diff --git