diff options
| author | Matthew Wilcox <matthew@wil.cx> | 2005-03-31 06:25:26 -0800 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2005-03-31 06:25:26 -0800 |
| commit | 28a60e50ba50594a870e47784cf845142c5ed661 (patch) | |
| tree | 5a35896439bcef5c6c43a504c273bcf6d1842618 /net/unix/garbage.c | |
| parent | 1f2ad0e4a5499c03409dda5980a7c1bc48ac6aaa (diff) | |
[NET]: Remove i_sock
Remove i_sock from struct inode. Also remove some checks for SOCKET_I()
returning NULL -- it can never return NULL for a valid inode.
Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/garbage.c')
| -rw-r--r-- | net/unix/garbage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unix/garbage.c b/net/unix/garbage.c index 3d5e1a5f433f..4bd95c8f5934 100644 --- a/net/unix/garbage.c +++ b/net/unix/garbage.c @@ -100,7 +100,7 @@ static struct sock *unix_get_socket(struct file *filp) /* * Socket ? */ - if (inode->i_sock) { + if (S_ISSOCK(inode->i_mode)) { struct socket * sock = SOCKET_I(inode); struct sock * s = sock->sk; |
