Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90261
b: refs/heads/master
c: ff2bac6
h: refs/heads/master
i:
  90259: 5585741
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Mar 24, 2008
1 parent ba13468 commit 46606fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 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: 757764f61d07ab8ff84699b6d608eac7bc94cecc
refs/heads/master: ff2bac6a63e3694e7a97152b7e934fe244e2a858
14 changes: 11 additions & 3 deletions trunk/net/ipv4/udplite.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ static struct udp_seq_afinfo udplite4_seq_afinfo = {
.seq_show = udp4_seq_show,
.seq_fops = &udplite4_seq_fops,
};

static __init int udplite4_proc_init(void)
{
return udp_proc_register(&init_net, &udplite4_seq_afinfo);
}
#else
static inline int udplite4_proc_init(void)
{
return 0;
}
#endif

void __init udplite4_register(void)
Expand All @@ -94,10 +104,8 @@ void __init udplite4_register(void)

inet_register_protosw(&udplite4_protosw);

#ifdef CONFIG_PROC_FS
if (udp_proc_register(&init_net, &udplite4_seq_afinfo))
if (udplite4_proc_init())
printk(KERN_ERR "%s: Cannot register /proc!\n", __func__);
#endif
return;

out_unregister_proto:
Expand Down

0 comments on commit 46606fc

Please sign in to comment.