X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=net%2Frxrpc%2Ftransport.c;h=9bce7794130af0e3b3bad3988cbbf350a51f642a;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=7e015ceecee5fa8a6e254b4531f96a0ea0b2725b;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/net/rxrpc/transport.c b/net/rxrpc/transport.c index 7e015ceec..9bce77941 100644 --- a/net/rxrpc/transport.c +++ b/net/rxrpc/transport.c @@ -39,7 +39,7 @@ struct errormsg { struct sockaddr_in icmp_src; /* ICMP packet source address */ }; -static spinlock_t rxrpc_transports_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(rxrpc_transports_lock); static struct list_head rxrpc_transports = LIST_HEAD_INIT(rxrpc_transports); __RXACCT_DECL(atomic_t rxrpc_transport_count); @@ -148,16 +148,6 @@ int rxrpc_create_transport(unsigned short port, return ret; } /* end rxrpc_create_transport() */ -/*****************************************************************************/ -/* - * clear the connections on a transport endpoint - */ -void rxrpc_clear_transport(struct rxrpc_transport *trans) -{ - //struct rxrpc_connection *conn; - -} /* end rxrpc_clear_transport() */ - /*****************************************************************************/ /* * destroy a transport endpoint