summaryrefslogtreecommitdiffstats
path: root/drivers/staging/usbip/vhci_rx.c
diff options
context:
space:
mode:
authorBart Westgeest <bart@elbrys.com>2011-12-19 17:44:11 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-22 13:40:03 -0800
commit5a08c5267e45fe936452051a8c126e8418984eb7 (patch)
tree62e5852082cffb1515f629dc70b465e0b9ece4f4 /drivers/staging/usbip/vhci_rx.c
parent7933514043d42e69663a5123a53fab50eb0b4aba (diff)
downloadop-kernel-dev-5a08c5267e45fe936452051a8c126e8418984eb7.zip
op-kernel-dev-5a08c5267e45fe936452051a8c126e8418984eb7.tar.gz
staging: usbip: removed dead code from receive function
The usbip_xmit function supported sending and receiving data, however the sending part of the function was never used/executed. Renamed the function to usbip_recv, and removed the unused code. Signed-off-by: Bart Westgeest <bart@elbrys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/usbip/vhci_rx.c')
-rw-r--r--drivers/staging/usbip/vhci_rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/usbip/vhci_rx.c b/drivers/staging/usbip/vhci_rx.c
index 3872b8c..3f511b4 100644
--- a/drivers/staging/usbip/vhci_rx.c
+++ b/drivers/staging/usbip/vhci_rx.c
@@ -206,7 +206,7 @@ static void vhci_rx_pdu(struct usbip_device *ud)
memset(&pdu, 0, sizeof(pdu));
/* 1. receive a pdu header */
- ret = usbip_xmit(0, ud->tcp_socket, (char *) &pdu, sizeof(pdu), 0);
+ ret = usbip_recv(ud->tcp_socket, &pdu, sizeof(pdu));
if (ret < 0) {
if (ret == -ECONNRESET)
pr_info("connection reset by peer\n");
OpenPOWER on IntegriCloud