netdev
[Top] [All Lists]

remove excess initializer

To: davem@xxxxxxxxxxxxx
Subject: remove excess initializer
From: Benjamin LaHaise <bcrl@xxxxxxxxx>
Date: Thu, 27 Jan 2005 10:28:23 -0500
Cc: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
Hello,

The patch below removes some useless code bloat that is left over from 
who knows when.

                -ben
-- 
"Time is what keeps everything from happening all at once." -- John Wheeler


diff -purN linux-2.6.11-rc2/net/socket.c linux-2.6.11-rc2.bcrl/net/socket.c
--- linux-2.6.11-rc2/net/socket.c       2005-01-24 10:19:24.000000000 -0500
+++ linux-2.6.11-rc2.bcrl/net/socket.c  2005-01-27 10:25:18.296037875 -0500
@@ -2029,13 +2029,6 @@ void __init sock_init(void)
        int i;
 
        /*
-        *      Initialize all address (protocol) families. 
-        */
-        
-       for (i = 0; i < NPROTO; i++) 
-               net_families[i] = NULL;
-
-       /*
         *      Initialize sock SLAB cache.
         */
         

<Prev in Thread] Current Thread [Next in Thread>