Commit a439f5bf authored by Himanshu Chauhan's avatar Himanshu Chauhan Committed by Greg Kroah-Hartman

Staging: usbip: Remove dead code

This patch removes the dead uncompiled code in usbip_common.c
Signed-off-by: default avatarHimanshu Chauhan <himanshu@symmetricore.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent aad86577
...@@ -530,60 +530,6 @@ err: ...@@ -530,60 +530,6 @@ err:
} }
EXPORT_SYMBOL_GPL(usbip_xmit); 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 *sockfd_to_socket(unsigned int sockfd)
{ {
struct socket *socket; struct socket *socket;
......
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