--- Yield/net/socket.c.orig 2002-10-31 09:10:07.000000000 +0100 +++ Yield/net/socket.c 2002-10-31 09:13:48.000000000 +0100 @@ -138,7 +138,6 @@ static struct net_proto_family *net_families[NPROTO]; -#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT) static atomic_t net_family_lockct = ATOMIC_INIT(0); static spinlock_t net_family_lock = SPIN_LOCK_UNLOCKED; @@ -175,13 +174,6 @@ atomic_dec(&net_family_lockct); } -#else -#define net_family_write_lock() do { } while(0) -#define net_family_write_unlock() do { } while(0) -#define net_family_read_lock() do { } while(0) -#define net_family_read_unlock() do { } while(0) -#endif - /* * Statistics counters of the socket lists