staging: usbip: removed dead code from receive function
[pandora-kernel.git] / drivers / staging / usbip / vhci_rx.c
index 3872b8c..f5fba73 100644 (file)
@@ -94,8 +94,7 @@ static void vhci_recv_ret_submit(struct vhci_device *vdev,
                return;
 
        /* restore the padding in iso packets */
-       if (usbip_pad_iso(ud, urb) < 0)
-               return;
+       usbip_pad_iso(ud, urb);
 
        if (usbip_dbg_flag_vhci_rx)
                usbip_dump_urb(urb);
@@ -206,7 +205,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");