Commit 75fe8c8b authored by Bart Westgeest's avatar Bart Westgeest Committed by Greg Kroah-Hartman

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: default avatarBart Westgeest <bart@elbrys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5a08c526
...@@ -109,11 +109,6 @@ static ssize_t store_sockfd(struct device *dev, struct device_attribute *attr, ...@@ -109,11 +109,6 @@ static ssize_t store_sockfd(struct device *dev, struct device_attribute *attr,
spin_unlock(&sdev->ud.lock); spin_unlock(&sdev->ud.lock);
return -EINVAL; return -EINVAL;
} }
#if 0
setnodelay(socket);
setkeepalive(socket);
setreuse(socket);
#endif
sdev->ud.tcp_socket = socket; sdev->ud.tcp_socket = socket;
spin_unlock(&sdev->ud.lock); spin_unlock(&sdev->ud.lock);
......
...@@ -292,15 +292,6 @@ struct usbip_device { ...@@ -292,15 +292,6 @@ struct usbip_device {
} eh_ops; } eh_ops;
}; };
#if 0
int usbip_sendmsg(struct socket *, struct msghdr *, int);
int set_sockaddr(struct socket *socket, struct sockaddr_storage *ss);
int setnodelay(struct socket *);
int setquickack(struct socket *);
int setkeepalive(struct socket *socket);
void setreuse(struct socket *);
#endif
/* usbip_common.c */ /* usbip_common.c */
void usbip_dump_urb(struct urb *purb); void usbip_dump_urb(struct urb *purb);
void usbip_dump_header(struct usbip_header *pdu); void usbip_dump_header(struct usbip_header *pdu);
...@@ -336,9 +327,4 @@ static inline int interface_to_devnum(struct usb_interface *interface) ...@@ -336,9 +327,4 @@ static inline int interface_to_devnum(struct usb_interface *interface)
return udev->devnum; return udev->devnum;
} }
static inline int interface_to_infnum(struct usb_interface *interface)
{
return interface->cur_altsetting->desc.bInterfaceNumber;
}
#endif /* __USBIP_COMMON_H */ #endif /* __USBIP_COMMON_H */
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