summaryrefslogtreecommitdiff
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2005-03-31 06:25:26 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2005-03-31 06:25:26 -0800
commit28a60e50ba50594a870e47784cf845142c5ed661 (patch)
tree5a35896439bcef5c6c43a504c273bcf6d1842618 /net/unix/garbage.c
parent1f2ad0e4a5499c03409dda5980a7c1bc48ac6aaa (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.c2
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;