Received: by 10.223.185.116 with SMTP id b49csp822565wrg; Sat, 10 Feb 2018 21:12:42 -0800 (PST) X-Google-Smtp-Source: AH8x22435VrVj465fKMCY7kTRxfAPX5DbkWZBGwIRZE7rjujQ8CcdBX7Fh+TySSXSwosMcWdIOMP X-Received: by 10.101.88.7 with SMTP id g7mr6458143pgr.249.1518325962554; Sat, 10 Feb 2018 21:12:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518325962; cv=none; d=google.com; s=arc-20160816; b=fsk1SA5JewRLpvo1qT14PncWNgqkH5Mo38uzsFG0PQdO/YrxfaO3Xn3ilqvW2dFR+g bHBLZJGuwxWCus+DcnBKLdaEWmvzpOu1tIqO6XBLhnX5BzXcqFx1a2Gu6SrWCIiHmHRU P+2zXu4rjiiWVKFWOTtUhbhj8AZRoDfOKI58xLoKhay/O9EPGnR6H+rFify5enp+PUeW X0GcPuo6Inno+JwOql41SXjitH+dMVHHSqxAkjyUIUdYTETbbzY4QZnwkRbcWpVlIA/C pSw5JwsWnbmqOP/WZLqplQoPxwhEGD47Dy+nkHvxcQZCORXZTgOnHEAfDxmGhNCbrOQ7 yx4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=eHVDf1Jsccrrlr7KujAOZwJyP+3R5znqraePdRp55yA=; b=di5HkCrC73mRp0LKIGEJGFes2xxSNxcMMvImjuOIm6JiaCSASyDbPMx9zq7Vq/koA0 rk4FKmFCY+Wh9xrn9r09lfAthwqXpi/m3lCzSxRK2ynu/gTYbCx/z/iDZW6/EeV3J8Mk rXdsEV/okMzUI9A6EAsIH+z1F9XhziI2v2+FWl3xloE3Tqx05uF9Wriha8Oc5Mp32SOk 7iEUMafRBgAHWYUTWFVWkJoN3CY6RF3BsUfk3xJzCM0FEmuZ7qmDP+0gfiNLOEdeqoqb SJGFXClvJTuL89/MYsLwBd7yW8l4chFjnTku2v7AiuEXimUevzrLqFw1Si0XnqcWLlNk iN6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d21-v6si3956391pll.268.2018.02.10.21.12.28; Sat, 10 Feb 2018 21:12:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753945AbeBKFLK (ORCPT + 99 others); Sun, 11 Feb 2018 00:11:10 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:41427 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752641AbeBKEdm (ORCPT ); Sat, 10 Feb 2018 23:33:42 -0500 Received: from [2a02:8011:400e:2:6f00:88c8:c921:d332] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ekjKc-0002hL-Ut; Sun, 11 Feb 2018 04:33:39 +0000 Received: from ben by deadeye with local (Exim 4.90) (envelope-from ) id 1ekjKY-0004X4-RQ; Sun, 11 Feb 2018 04:33:34 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Bart Westgeest" , "Greg Kroah-Hartman" Date: Sun, 11 Feb 2018 04:20:06 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.2 70/79] staging: usbip: removed #if 0'd out code In-Reply-To: X-SA-Exim-Connect-IP: 2a02:8011:400e:2:6f00:88c8:c921:d332 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.2.99-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Bart Westgeest commit 34c09578179f5838e5958c45e8aed4edc9c6c3b8 upstream. Signed-off-by: Bart Westgeest Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- drivers/staging/usbip/stub_rx.c | 9 --------- drivers/staging/usbip/vhci_hcd.c | 39 --------------------------------------- 2 files changed, 48 deletions(-) --- a/drivers/staging/usbip/stub_rx.c +++ b/drivers/staging/usbip/stub_rx.c @@ -367,15 +367,6 @@ static int get_pipe(struct stub_device * } epd = &ep->desc; -#if 0 - /* epnum 0 is always control */ - if (epnum == 0) { - if (dir == USBIP_DIR_OUT) - return usb_sndctrlpipe(udev, 0); - else - return usb_rcvctrlpipe(udev, 0); - } -#endif if (usb_endpoint_xfer_control(epd)) { if (dir == USBIP_DIR_OUT) return usb_sndctrlpipe(udev, epnum); --- a/drivers/staging/usbip/vhci_hcd.c +++ b/drivers/staging/usbip/vhci_hcd.c @@ -391,29 +391,6 @@ static int vhci_hub_control(struct usb_h dum->port_status[rhport] |= USB_PORT_STAT_ENABLE; } -#if 0 - if (dum->driver) { - dum->port_status[rhport] |= - USB_PORT_STAT_ENABLE; - /* give it the best speed we agree on */ - dum->gadget.speed = dum->driver->speed; - dum->gadget.ep0->maxpacket = 64; - switch (dum->gadget.speed) { - case USB_SPEED_HIGH: - dum->port_status[rhport] |= - USB_PORT_STAT_HIGH_SPEED; - break; - case USB_SPEED_LOW: - dum->gadget.ep0->maxpacket = 8; - dum->port_status[rhport] |= - USB_PORT_STAT_LOW_SPEED; - break; - default: - dum->gadget.speed = USB_SPEED_FULL; - break; - } - } -#endif } ((u16 *) buf)[0] = cpu_to_le16(dum->port_status[rhport]); ((u16 *) buf)[1] = cpu_to_le16(dum->port_status[rhport] >> 16); @@ -430,15 +407,6 @@ static int vhci_hub_control(struct usb_h case USB_PORT_FEAT_SUSPEND: usbip_dbg_vhci_rh(" SetPortFeature: " "USB_PORT_FEAT_SUSPEND\n"); -#if 0 - dum->port_status[rhport] |= - (1 << USB_PORT_FEAT_SUSPEND); - if (dum->driver->suspend) { - spin_unlock(&dum->lock); - dum->driver->suspend(&dum->gadget); - spin_lock(&dum->lock); - } -#endif break; case USB_PORT_FEAT_RESET: usbip_dbg_vhci_rh(" SetPortFeature: " @@ -449,13 +417,6 @@ static int vhci_hub_control(struct usb_h ~(USB_PORT_STAT_ENABLE | USB_PORT_STAT_LOW_SPEED | USB_PORT_STAT_HIGH_SPEED); -#if 0 - if (dum->driver) { - dev_dbg(hardware, "disconnect\n"); - stop_activity(dum, dum->driver); - } -#endif - /* FIXME test that code path! */ } /* 50msec reset signaling */