Staging: usbip: Remove dead code
authorHimanshu Chauhan <himanshu@symmetricore.com>
Sat, 23 Jan 2010 05:06:56 +0000 (10:36 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:52 +0000 (16:42 -0800)
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>
drivers/staging/usbip/usbip_common.c

index 3367a52..d819702 100644 (file)
@@ -530,60 +530,6 @@ err:
 }
 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;