From patchwork Fri Dec 8 15:59:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Nyman X-Patchwork-Id: 121193 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp825194qgn; Fri, 8 Dec 2017 07:57:30 -0800 (PST) X-Google-Smtp-Source: AGs4zMb/WogXq8MdprBnuTvsIy5DDC6s2HOj8ccV0G9dMYQosI5MGn/Cqqq/6mCqy5vsJkeEaWIv X-Received: by 10.99.108.7 with SMTP id h7mr29682569pgc.343.1512748650594; Fri, 08 Dec 2017 07:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512748650; cv=none; d=google.com; s=arc-20160816; b=ZVsykQFrBUsrEa/6bDjSjxExS7EwxSIqwJq2IqniPpSlJaoKsJqdyN2FOTHaEvaday OilbLEGaSfCJxVu1YOlei8vg9PJD2wC+xQT64n1qHuFaIrGipuZJ3eM9REx/ASOMLVCo ofK/r5M4aHK4RoFn6dNtBzdbBCbSbyTl8SCUoU9cDDhpPR1lVocKY2gYJ9AFNDmZIKDc CmKyMbkWlPSMXIXcIgTiCCumqP/eDpPOMTGW+YEtVa3Sm3ITycq6brc9/DwgPtihNEC/ zkckp15UhQn4wq4jdBuouz7UPW3fPzzjgLboAnAtdRLrsNPThq79KoMpEf6c4v4lWkPR kPHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=DwKGZKMyRFt4wLbw7BuuB9yeSfsnx3rvssKF1NOUu0w=; b=BREXv1pKX6SYM4h43Oe/DcRkvWcqzOsHxE6BQIoFfH3hoiGAluNjE+HWTlZasV44PI Lk/5+dOOok3aa1mInEstNwPWak40fB/ZKHg91MdgR9kiQeFlP/fH2+iPriwro/IZlOlp htdB0gGPqJ8vB7o/V52IiwTjK9EIPFBUtdoydKBWgBUOuNpp8DwR3cMBfCz5H3LDvRnb eKnneasqjnmJ5E5v50YyNlX6nsLCvrAPjHGJCpBAdZSnGlw8iHawtchsn6H9vu2KI6zF 7q1BY0sNPVKFJE6gwg/Fwo+SSlVcFuxU/vWhOZ0uwGtHcBP3nQ+tojrYAzOLRvl/e887 ODkA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-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 33si5692906ply.741.2017.12.08.07.57.30; Fri, 08 Dec 2017 07:57:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-usb-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-usb-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754503AbdLHP50 (ORCPT + 3 others); Fri, 8 Dec 2017 10:57:26 -0500 Received: from mga06.intel.com ([134.134.136.31]:3490 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754482AbdLHP5M (ORCPT ); Fri, 8 Dec 2017 10:57:12 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Dec 2017 07:57:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,378,1508828400"; d="scan'208";a="11726298" Received: from mattu-haswell.fi.intel.com ([10.237.72.164]) by fmsmga001.fm.intel.com with ESMTP; 08 Dec 2017 07:57:10 -0800 From: Mathias Nyman To: Cc: linux-usb@vger.kernel.org, Corentin Labbe , Mathias Nyman Subject: [PATCH 03/14] usb: xhci: remove unused variable urb_priv Date: Fri, 8 Dec 2017 17:59:04 +0200 Message-Id: <1512748755-3248-4-git-send-email-mathias.nyman@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512748755-3248-1-git-send-email-mathias.nyman@linux.intel.com> References: <1512748755-3248-1-git-send-email-mathias.nyman@linux.intel.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Corentin Labbe Fix the build warning: variable 'urb_priv' set but not used Signed-off-by: Corentin Labbe Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-ring.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index c239c68..9a914b6 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -1878,12 +1878,10 @@ int xhci_is_vendor_info_code(struct xhci_hcd *xhci, unsigned int trb_comp_code) static int xhci_td_cleanup(struct xhci_hcd *xhci, struct xhci_td *td, struct xhci_ring *ep_ring, int *status) { - struct urb_priv *urb_priv; struct urb *urb = NULL; /* Clean up the endpoint's TD list */ urb = td->urb; - urb_priv = urb->hcpriv; /* if a bounce buffer was used to align this td then unmap it */ xhci_unmap_td_bounce_buffer(xhci, ep_ring, td);