[NET]: Clean proto_(un)register from in-code ifdefs
authorPavel Emelyanov <xemul@openvz.org>
Wed, 7 Nov 2007 10:23:38 +0000 (02:23 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 7 Nov 2007 12:15:04 +0000 (04:15 -0800)
commitb733c007edad6f3e05109951bacc6f87dd807917
treefa267da7ccba5bae081997064d953f5993c3dbf3
parent4999f3621f4da622e77931b3d33ada6c7083c705
[NET]: Clean proto_(un)register from in-code ifdefs

The struct proto has the per-cpu "inuse" counter, which is handled
with a special care. All the handling code hides under the ifdef
CONFIG_SMP and it introduces some code duplication and makes it
look worse than it could.

Clean this.

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