sctp: remove the typedef sctp_scope_t
This patch is to remove the typedef sctp_scope_t, and replace with enum sctp_scope in the places where it's using this typedef. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
701ef3e6c7
commit
1c662018d2
@@ -63,11 +63,11 @@ static void sctp_assoc_free_asconf_queue(struct sctp_association *asoc);
|
||||
/* 1st Level Abstractions. */
|
||||
|
||||
/* Initialize a new association from provided memory. */
|
||||
static struct sctp_association *sctp_association_init(struct sctp_association *asoc,
|
||||
const struct sctp_endpoint *ep,
|
||||
const struct sock *sk,
|
||||
sctp_scope_t scope,
|
||||
gfp_t gfp)
|
||||
static struct sctp_association *sctp_association_init(
|
||||
struct sctp_association *asoc,
|
||||
const struct sctp_endpoint *ep,
|
||||
const struct sock *sk,
|
||||
enum sctp_scope scope, gfp_t gfp)
|
||||
{
|
||||
struct net *net = sock_net(sk);
|
||||
struct sctp_sock *sp;
|
||||
@@ -301,9 +301,8 @@ fail_init:
|
||||
|
||||
/* Allocate and initialize a new association */
|
||||
struct sctp_association *sctp_association_new(const struct sctp_endpoint *ep,
|
||||
const struct sock *sk,
|
||||
sctp_scope_t scope,
|
||||
gfp_t gfp)
|
||||
const struct sock *sk,
|
||||
enum sctp_scope scope, gfp_t gfp)
|
||||
{
|
||||
struct sctp_association *asoc;
|
||||
|
||||
@@ -1564,7 +1563,7 @@ void sctp_assoc_rwnd_decrease(struct sctp_association *asoc, unsigned int len)
|
||||
* local endpoint and the remote peer.
|
||||
*/
|
||||
int sctp_assoc_set_bind_addr_from_ep(struct sctp_association *asoc,
|
||||
sctp_scope_t scope, gfp_t gfp)
|
||||
enum sctp_scope scope, gfp_t gfp)
|
||||
{
|
||||
int flags;
|
||||
|
||||
|
Reference in New Issue
Block a user