diff options
| author | Bart Westgeest <bart@elbrys.com> | 2011-12-19 17:44:12 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-22 16:40:03 -0500 |
| commit | 75fe8c8b906367ed3b3a5d87b4db42974e0dcf97 (patch) | |
| tree | 712dfaabf63e5bc054ec953015f473ce8d00c853 /drivers/staging | |
| parent | 5a08c5267e45fe936452051a8c126e8418984eb7 (diff) | |
staging: usbip: removed unused definitions from header
Removed remnants of old function definitions which have since been
removed in earlier cleanup work.
Signed-off-by: Bart Westgeest <bart@elbrys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
| -rw-r--r-- | drivers/staging/usbip/stub_dev.c | 5 | ||||
| -rw-r--r-- | drivers/staging/usbip/usbip_common.h | 14 |
2 files changed, 0 insertions, 19 deletions
diff --git a/drivers/staging/usbip/stub_dev.c b/drivers/staging/usbip/stub_dev.c index 55c0b510889c..03420e25d9c6 100644 --- a/drivers/staging/usbip/stub_dev.c +++ b/drivers/staging/usbip/stub_dev.c | |||
| @@ -109,11 +109,6 @@ static ssize_t store_sockfd(struct device *dev, struct device_attribute *attr, | |||
| 109 | spin_unlock(&sdev->ud.lock); | 109 | spin_unlock(&sdev->ud.lock); |
| 110 | return -EINVAL; | 110 | return -EINVAL; |
| 111 | } | 111 | } |
| 112 | #if 0 | ||
| 113 | setnodelay(socket); | ||
| 114 | setkeepalive(socket); | ||
| 115 | setreuse(socket); | ||
| 116 | #endif | ||
| 117 | sdev->ud.tcp_socket = socket; | 112 | sdev->ud.tcp_socket = socket; |
| 118 | 113 | ||
| 119 | spin_unlock(&sdev->ud.lock); | 114 | spin_unlock(&sdev->ud.lock); |
diff --git a/drivers/staging/usbip/usbip_common.h b/drivers/staging/usbip/usbip_common.h index 33e8db0af9c5..b8f8c48b8a72 100644 --- a/drivers/staging/usbip/usbip_common.h +++ b/drivers/staging/usbip/usbip_common.h | |||
| @@ -292,15 +292,6 @@ struct usbip_device { | |||
| 292 | } eh_ops; | 292 | } eh_ops; |
| 293 | }; | 293 | }; |
| 294 | 294 | ||
| 295 | #if 0 | ||
| 296 | int usbip_sendmsg(struct socket *, struct msghdr *, int); | ||
| 297 | int set_sockaddr(struct socket *socket, struct sockaddr_storage *ss); | ||
| 298 | int setnodelay(struct socket *); | ||
| 299 | int setquickack(struct socket *); | ||
| 300 | int setkeepalive(struct socket *socket); | ||
| 301 | void setreuse(struct socket *); | ||
| 302 | #endif | ||
| 303 | |||
| 304 | /* usbip_common.c */ | 295 | /* usbip_common.c */ |
| 305 | void usbip_dump_urb(struct urb *purb); | 296 | void usbip_dump_urb(struct urb *purb); |
| 306 | void usbip_dump_header(struct usbip_header *pdu); | 297 | void usbip_dump_header(struct usbip_header *pdu); |
| @@ -336,9 +327,4 @@ static inline int interface_to_devnum(struct usb_interface *interface) | |||
| 336 | return udev->devnum; | 327 | return udev->devnum; |
| 337 | } | 328 | } |
| 338 | 329 | ||
| 339 | static inline int interface_to_infnum(struct usb_interface *interface) | ||
| 340 | { | ||
| 341 | return interface->cur_altsetting->desc.bInterfaceNumber; | ||
| 342 | } | ||
| 343 | |||
| 344 | #endif /* __USBIP_COMMON_H */ | 330 | #endif /* __USBIP_COMMON_H */ |
