[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)
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>

No differences found