Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90618
b: refs/heads/master
c: 996b1db
h: refs/heads/master
v: v3
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Apr 10, 2008
1 parent 9256b93 commit b7d7c1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24e8b7e48471514c9311c733b3f399bd20d014fe
refs/heads/master: 996b1dbadcbcafb899f022303e01d46ab87920eb
18 changes: 4 additions & 14 deletions trunk/net/sctp/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,24 +972,14 @@ int sctp_register_pf(struct sctp_pf *pf, sa_family_t family)
return 1;
}

static int __init init_sctp_mibs(void)
static inline int init_sctp_mibs(void)
{
sctp_statistics[0] = alloc_percpu(struct sctp_mib);
if (!sctp_statistics[0])
return -ENOMEM;
sctp_statistics[1] = alloc_percpu(struct sctp_mib);
if (!sctp_statistics[1]) {
free_percpu(sctp_statistics[0]);
return -ENOMEM;
}
return 0;

return snmp_mib_init((void**)sctp_statistics, sizeof(struct sctp_mib));
}

static void cleanup_sctp_mibs(void)
static inline void cleanup_sctp_mibs(void)
{
free_percpu(sctp_statistics[0]);
free_percpu(sctp_statistics[1]);
snmp_mib_free((void**)sctp_statistics);
}

static void sctp_v4_pf_init(void)
Expand Down

0 comments on commit b7d7c1b

Please sign in to comment.