Commit fe8ab769 authored by David S. Miller's avatar David S. Miller

arch/sparc64/solaris/socket.c: Kill more sockfd_{lookup,put} redefinitions.

parent 32f8c9aa
...@@ -248,31 +248,6 @@ asmlinkage int solaris_getsockname(int fd, struct sockaddr *addr, int *addrlen) ...@@ -248,31 +248,6 @@ asmlinkage int solaris_getsockname(int fd, struct sockaddr *addr, int *addrlen)
24 for IPv6, 24 for IPv6,
about 80 for AX.25 */ about 80 for AX.25 */
extern __inline__ struct socket *sockfd_lookup(int fd, int *err)
{
struct file *file;
struct inode *inode;
if (!(file = fget(fd))) {
*err = -EBADF;
return NULL;
}
inode = file->f_dentry->d_inode;
if (!inode->i_sock) {
*err = -ENOTSOCK;
fput(file);
return NULL;
}
return SOCKET_I(inode);
}
extern __inline__ void sockfd_put(struct socket *sock)
{
fput(sock->file);
}
struct sol_nmsghdr { struct sol_nmsghdr {
u32 msg_name; u32 msg_name;
int msg_namelen; int msg_namelen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment