mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-01 11:21:51 +00:00
af_unix: clean up net/unix/af_unix.c garbage.c sysctl_net_unix.c
clean up net/unix/af_unix.c garbage.c sysctl_net_unix.c Signed-off-by: Jianjun Kong <jianjun@zeuux.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c37ccc0d4e
commit
e27dfcea48
3 changed files with 42 additions and 44 deletions
|
@ -2077,6 +2077,7 @@ struct unix_iter_state {
|
||||||
struct seq_net_private p;
|
struct seq_net_private p;
|
||||||
int i;
|
int i;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct sock *unix_seq_idx(struct seq_file *seq, loff_t pos)
|
static struct sock *unix_seq_idx(struct seq_file *seq, loff_t pos)
|
||||||
{
|
{
|
||||||
struct unix_iter_state *iter = seq->private;
|
struct unix_iter_state *iter = seq->private;
|
||||||
|
@ -2093,7 +2094,6 @@ static struct sock *unix_seq_idx(struct seq_file *seq, loff_t pos)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void *unix_seq_start(struct seq_file *seq, loff_t *pos)
|
static void *unix_seq_start(struct seq_file *seq, loff_t *pos)
|
||||||
__acquires(unix_table_lock)
|
__acquires(unix_table_lock)
|
||||||
{
|
{
|
||||||
|
@ -2173,7 +2173,6 @@ static const struct seq_operations unix_seq_ops = {
|
||||||
.show = unix_seq_show,
|
.show = unix_seq_show,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static int unix_seq_open(struct inode *inode, struct file *file)
|
static int unix_seq_open(struct inode *inode, struct file *file)
|
||||||
{
|
{
|
||||||
return seq_open_net(inode, file, &unix_seq_ops,
|
return seq_open_net(inode, file, &unix_seq_ops,
|
||||||
|
|
|
@ -61,4 +61,3 @@ void unix_sysctl_unregister(struct net *net)
|
||||||
unregister_sysctl_table(net->unx.ctl);
|
unregister_sysctl_table(net->unx.ctl);
|
||||||
kfree(table);
|
kfree(table);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue