Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b51b064 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

af_unix: remove unix_iter_state



As pointed out by Michael Tokarev , struct unix_iter_state is no longer
needed.

Suggested-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Steven Whitehouse <swhiteho@redhat.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b823f72
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -2255,10 +2255,6 @@ static unsigned int unix_dgram_poll(struct file *file, struct socket *sock,
#define get_offset(x) ((x) & ((1L << BUCKET_SPACE) - 1))
#define get_offset(x) ((x) & ((1L << BUCKET_SPACE) - 1))
#define set_bucket_offset(b, o) ((b) << BUCKET_SPACE | (o))
#define set_bucket_offset(b, o) ((b) << BUCKET_SPACE | (o))


struct unix_iter_state {
	struct seq_net_private p;
};

static struct sock *unix_from_bucket(struct seq_file *seq, loff_t *pos)
static struct sock *unix_from_bucket(struct seq_file *seq, loff_t *pos)
{
{
	unsigned long offset = get_offset(*pos);
	unsigned long offset = get_offset(*pos);
@@ -2383,7 +2379,7 @@ static const struct seq_operations unix_seq_ops = {
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,
			    sizeof(struct unix_iter_state));
			    sizeof(struct seq_net_private));
}
}


static const struct file_operations unix_seq_fops = {
static const struct file_operations unix_seq_fops = {