Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186719
b: refs/heads/master
c: a439f5b
h: refs/heads/master
i:
  186717: 4845240
  186715: 0fdb368
  186711: a33c365
  186703: dff71c7
  186687: faeced9
v: v3
  • Loading branch information
Himanshu Chauhan authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent 4439325 commit c372d71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 55 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aad86577b829be29048e0a692e1c28c3ffeda6ca
refs/heads/master: a439f5bff51d3e0c93d61ee6886b9dbf29a03da9
54 changes: 0 additions & 54 deletions trunk/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 c372d71

Please sign in to comment.