Skip to content

Commit

Permalink
Staging: usbip: Remove dead code
Browse files Browse the repository at this point in the history
This patch removes the dead uncompiled code in usbip_common.c

Signed-off-by: Himanshu Chauhan <himanshu@symmetricore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Himanshu Chauhan authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent aad8657 commit a439f5b
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions drivers/staging/usbip/usbip_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,60 +530,6 @@ int usbip_xmit(int send, struct socket *sock, char *buf,
}
EXPORT_SYMBOL_GPL(usbip_xmit);


/* now a usrland utility should set options. */
#if 0
int setquickack(struct socket *socket)
{
mm_segment_t oldfs;
int val = 1;
int ret;

oldfs = get_fs();
set_fs(get_ds());
ret = socket->ops->setsockopt(socket, SOL_TCP, TCP_QUICKACK,
(char __user *) &val, sizeof(ret));
set_fs(oldfs);

return ret;
}

int setnodelay(struct socket *socket)
{
mm_segment_t oldfs;
int val = 1;
int ret;

oldfs = get_fs();
set_fs(get_ds());
ret = socket->ops->setsockopt(socket, SOL_TCP, TCP_NODELAY,
(char __user *) &val, sizeof(ret));
set_fs(oldfs);

return ret;
}

int setkeepalive(struct socket *socket)
{
mm_segment_t oldfs;
int val = 1;
int ret;

oldfs = get_fs();
set_fs(get_ds());
ret = socket->ops->setsockopt(socket, SOL_SOCKET, SO_KEEPALIVE,
(char __user *) &val, sizeof(ret));
set_fs(oldfs);

return ret;
}

void setreuse(struct socket *socket)
{
socket->sk->sk_reuse = 1;
}
#endif

struct socket *sockfd_to_socket(unsigned int sockfd)
{
struct socket *socket;
Expand Down

0 comments on commit a439f5b

Please sign in to comment.