Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90455
b: refs/heads/master
c: 997feb5
h: refs/heads/master
i:
  90453: 31caf11
  90451: 314979b
  90447: 34b671e
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Mar 29, 2008
1 parent b1aea91 commit 2da95f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 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: 6f191efe48af62dd5f8917dd21d187f896cd6c81
refs/heads/master: 997feb5e7a24ce155c1d3bea9d0b5c6530bb6197
4 changes: 0 additions & 4 deletions trunk/net/ipv4/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1628,8 +1628,6 @@ int udp_proc_register(struct net *net, struct udp_seq_afinfo *afinfo)
struct proc_dir_entry *p;
int rc = 0;

if (!afinfo)
return -EINVAL;
afinfo->seq_fops->owner = afinfo->owner;
afinfo->seq_fops->open = udp_seq_open;
afinfo->seq_fops->read = seq_read;
Expand All @@ -1646,8 +1644,6 @@ int udp_proc_register(struct net *net, struct udp_seq_afinfo *afinfo)

void udp_proc_unregister(struct net *net, struct udp_seq_afinfo *afinfo)
{
if (!afinfo)
return;
proc_net_remove(net, afinfo->name);
memset(afinfo->seq_fops, 0, sizeof(*afinfo->seq_fops));
}
Expand Down

0 comments on commit 2da95f3

Please sign in to comment.