aboutsummaryrefslogtreecommitdiff
path: root/net/xfrm
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2007-02-08 14:59:57 -0800
committerDavid S. Miller <davem@davemloft.net>2007-02-08 14:59:57 -0800
commit23bb80d2158cf4421fe239d788fd53cafb151050 (patch)
tree63b3033a3d6ee10baf7ecdda350b2cc0cd03baa9 /net/xfrm
parentdbca9b2750e3b1ee6f56a616160ccfc12e8b161f (diff)
[NET]: cleanup sock_from_file()
I believe dead code from sock_from_file() can be cleaned up. All sockets are now built using sock_attach_fd(), that puts the 'sock' pointer into file->private_data and &socket_file_ops into file->f_op I could not find a place where file->private_data could be set to NULL, keeping opened the file. So to get 'sock' from a 'file' pointer, either : - This is a socket file (f_op == &socket_file_ops), and we can directly get 'sock' from private_data. - This is not a socket, we return -ENOTSOCK and dont even try to find a socket via dentry/inode :) Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm')
0 files changed, 0 insertions, 0 deletions