Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90617
b: refs/heads/master
c: 24e8b7e
h: refs/heads/master
i:
  90615: 904c314
v: v3
  • Loading branch information
YOSHIFUJI Hideaki authored and David S. Miller committed Apr 10, 2008
1 parent 19ee559 commit 9256b93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 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: 387a5487f5a1f8bfc3b2c5818e50dfd19eeb4f3f
refs/heads/master: 24e8b7e48471514c9311c733b3f399bd20d014fe
27 changes: 4 additions & 23 deletions trunk/net/dccp/proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1010,33 +1010,14 @@ void dccp_shutdown(struct sock *sk, int how)

EXPORT_SYMBOL_GPL(dccp_shutdown);

static int __init dccp_mib_init(void)
static inline int dccp_mib_init(void)
{
int rc = -ENOMEM;

dccp_statistics[0] = alloc_percpu(struct dccp_mib);
if (dccp_statistics[0] == NULL)
goto out;

dccp_statistics[1] = alloc_percpu(struct dccp_mib);
if (dccp_statistics[1] == NULL)
goto out_free_one;

rc = 0;
out:
return rc;
out_free_one:
free_percpu(dccp_statistics[0]);
dccp_statistics[0] = NULL;
goto out;

return snmp_mib_init((void**)dccp_statistics, sizeof(struct dccp_mib));
}

static void dccp_mib_exit(void)
static inline void dccp_mib_exit(void)
{
free_percpu(dccp_statistics[0]);
free_percpu(dccp_statistics[1]);
dccp_statistics[0] = dccp_statistics[1] = NULL;
snmp_mib_free((void**)dccp_statistics);
}

static int thash_entries;
Expand Down

0 comments on commit 9256b93

Please sign in to comment.