From fe8ab769535ba07e06d86df8c9660a4e991c8775 Mon Sep 17 00:00:00 2001 From: "David S. Miller" <davem@nuts.ninka.net> Date: Tue, 15 Oct 2002 05:46:59 -0700 Subject: [PATCH] arch/sparc64/solaris/socket.c: Kill more sockfd_{lookup,put} redefinitions. --- arch/sparc64/solaris/socket.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/arch/sparc64/solaris/socket.c b/arch/sparc64/solaris/socket.c index a7b71b230b4f..8fc005064238 100644 --- a/arch/sparc64/solaris/socket.c +++ b/arch/sparc64/solaris/socket.c @@ -248,31 +248,6 @@ asmlinkage int solaris_getsockname(int fd, struct sockaddr *addr, int *addrlen) 24 for IPv6, 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 { u32 msg_name; int msg_namelen; -- 2.30.9