From patchwork Thu Oct 26 10:46:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117189 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp604866qgn; Thu, 26 Oct 2017 03:46:55 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RwP6aApKL4q/maaPAV/jjNs/+eUJ+ojK5asqW3t9aExa+3ER/grcKbdo6ZF25My+cCo31H X-Received: by 10.99.178.86 with SMTP id t22mr4641989pgo.382.1509014815113; Thu, 26 Oct 2017 03:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509014815; cv=none; d=google.com; s=arc-20160816; b=b9RA0eejmpr2EwR3PUjWNgEqqiLMe+/WyQwgXypblWzxJId57Y05CPIJjcmwIInCj8 s4SbWzcxRfZyA+wl0/XCdvEBF9Fe+gzUPAfGW1fiDHLq8vMckTXQpgFU/Cf/rMn0cqLK bqvAua5+v3TmhwwLMAOT1wuDqfQLLeTjyC5TmCLI9oEvuK3lRjFRK1APOpOqX+Yv7VDj QUXlLqspelQdZarNxd3E5ovBXzbk+tuSsh3x9Id+xfg1bKnsl78BK+Cv9ZLnz5n+36Js 7r0j+iXe5ZZb8xscS0ZHa9ErirKdoAFf3tWEMjr+kPq7iviu0rtMBaWR0EoPgXhE4ksX ++1A== 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:dkim-signature:arc-authentication-results; bh=fv/i98bT66YQBcc9FEeR/t4kobrs650ZhHrHaMPGGJk=; b=p3M8GDECCcMS8g/Qzsz/tOVkMmNI3TDoKbfeKDGFPXut26wFSxWTvUcJANIYgiSqpF dlbDNatkCq4fw1DkEGI0b7dDnPidSLXDASGA0Ok7czKTCF4OYcFc6yUzG1dQDOGs9D3X La/SLxixBb4h/R3ESMI2wvKPYHUMgOyGIy1KH2kStI+5q+kA5KK6mtXiVtADRPbT7iIg CbpBQ0aHdYzT5S01QDt5sjhg7FIJ/AvaskIzaI2VU65//HtVnvihcBnik6gQA1k3AET6 e9NbnLom5sHf9nzX+1fVhxSUvdOdV6p5vaSF597XDW+Zlyj//Q42Rsrbn1qLRSPcmTRP Kb7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=N4r9W45Q; 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 m13si3220850pgs.20.2017.10.26.03.46.54; Thu, 26 Oct 2017 03:46:55 -0700 (PDT) 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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=N4r9W45Q; 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 S932231AbdJZKqx (ORCPT + 27 others); Thu, 26 Oct 2017 06:46:53 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:51948 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751771AbdJZKql (ORCPT ); Thu, 26 Oct 2017 06:46:41 -0400 Received: by mail-wm0-f65.google.com with SMTP id b9so7385016wmh.0 for ; Thu, 26 Oct 2017 03:46:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fv/i98bT66YQBcc9FEeR/t4kobrs650ZhHrHaMPGGJk=; b=N4r9W45QCkcYXlUSft8e5JL3YgSfi63CCW4f1Mj3ha+zoUbVtdrGciCEOiJcD+WF5F BMGE6Gr2/mohNatHovOKI6ahtMx4KxUdHvzl4BXBJvOtxGZFstJB5x4XHRgskhaz2HDj 9GBz6fTQ6a/jEMYPipFExdMI4UCiEVZfmqdUqP/CRbrHHGfvRs7vPlfC1jJMgc/LaVzw RS3OUB4uXsUBLp39Y9XUMS5fiN3uHhBLOa2rYI/T10O8TkipnaPkMyDe0gEihdZChk41 K4nH4RNGxl9ff2+2Kn4d3YcImGI1OlLLFieSMTwwLLIHpQxi3+Q3+kGMPSvDZG7aIuEa y8Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fv/i98bT66YQBcc9FEeR/t4kobrs650ZhHrHaMPGGJk=; b=SpSjiPkJCwyi3FnGU4GjFFl1nADMDz7tZ98QrN480FbEbOBny4aHFBNn41TgqUOL4O j2yqQv4TLM+I/KhEz5ECrwxgbHLF5oHzEzwkakbFK0r//GIaxCFZte4M7zs1xihHrNve xHfdLXp7rzNS7R9nOghOCuNVYvdyFjiNks1MuiQvWilJFCK2HBfssjE4Gor4Mh0QGnzt LI9qzIvgvp0gy63kEGZV1+OjbhfH4QfkvaGWILgkdRzptuCnFsgOQZUisBbjduMPuQcW P8bwE3NBJ8IVUKSR3S3ybg1ZOf+oyKkPLLZAQtnASLwL6xLSbV6qYfv7Q7PvUYqnPAE+ 9AXA== X-Gm-Message-State: AMCzsaUWE1Zvy2zbuIyt8J1g9Tj37uOnVazfz9tvey7BK/OkW2zUJDHb evfXrC6rbn6FhvFu33ngJlUQeA== X-Received: by 10.28.131.200 with SMTP id f191mr1272002wmd.39.1509014800752; Thu, 26 Oct 2017 03:46:40 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id o7sm6102295wrf.31.2017.10.26.03.46.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Oct 2017 03:46:40 -0700 (PDT) From: Corentin Labbe To: mathias.nyman@intel.com, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v2 3/4] usb: xhci: remove unused variable urb_priv Date: Thu, 26 Oct 2017 10:46:24 +0000 Message-Id: <1509014785-39823-4-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509014785-39823-1-git-send-email-clabbe@baylibre.com> References: <1509014785-39823-1-git-send-email-clabbe@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Corentin Labbe This patch fix the following build warning: drivers/usb/host/xhci-ring.c:1895:19: warning: variable 'urb_priv' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe --- drivers/usb/host/xhci-ring.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 521d19e..942eeb3 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -1890,12 +1890,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);