From patchwork Thu Oct 26 10:46:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117190 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp605186qgn; Thu, 26 Oct 2017 03:47:20 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TMOABW+Znor5UN74xOW6qEs1Zr2+mx87IQVorBcrglA/vGXiSKRR4hNQj5f74u3mTfTrSV X-Received: by 10.84.174.1 with SMTP id q1mr4176151plb.220.1509014840123; Thu, 26 Oct 2017 03:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509014840; cv=none; d=google.com; s=arc-20160816; b=C4IFmzoW7M4A11g2iTGPHKk5ZfDWazr+o9SXR5hKRnq9cfLExKvdfcaQOPpAd8ih9y d6T7rsYJavoSyRQUgvjDXN+tMQfQh119QEtNL5EF2ZL2nfb/6DrG7ZiXLO5pI860qntD iigbszvwRrL6WdW+ExMbkUuy9yhyXBwgMvvfG4chToKcN9l4fj9OjJKJbTIoh7Vyrr93 O5RXgNbut3s21mqhGdSFJfHr4qIGeBgjSRdqAwuNehbylJR6HViLgVRO7vq+EQXvqC9h aybzoAKvvbbU1+HE4TwYmivTHkOr7cqBf125JY16RrEo1gmNmSuCONvi+FS79KTHuZCM amAA== 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=SU1SQxfwE/17OA/d1UrUxg1Eos2f0u8VLkhvkUnrIZA=; b=ny5UqLmxXasnC3+PataR5qgqt6VZxbm85cD2ZgqJ1nC2FHXL7PUnzbr8vKaTRv4T85 eXaPqdqCaZxpqxQfk75PwBasv7NLJAMUThpSTD20Qv2rMbePZUhQ6rnulLmHRCL6rDJM EignKFU1+06UoeRsm3qZHf071id/8nKjdFnUXNRv8Lz+Qtkiy8rVydZ+ZrF7kvQa6s3n XwUxGEfHhG7r8h3YZFU1sDxxSS4GR+Buk9xEzQP0LgqFkz5p40eIIwCMywcrtTvoG84P ZT1apHtWI0OhkheB21gCaiif5sDrwPmZ4AdkR4CrPOz6Ar2h/b7j1l8KmAKH+QW4KFFG WHTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=XLmBLruf; 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 89si3463095pfj.174.2017.10.26.03.47.19; Thu, 26 Oct 2017 03:47:20 -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=XLmBLruf; 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 S1751771AbdJZKrS (ORCPT + 27 others); Thu, 26 Oct 2017 06:47:18 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:45778 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751548AbdJZKql (ORCPT ); Thu, 26 Oct 2017 06:46:41 -0400 Received: by mail-wm0-f67.google.com with SMTP id q124so7099877wmb.0 for ; Thu, 26 Oct 2017 03:46:40 -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=SU1SQxfwE/17OA/d1UrUxg1Eos2f0u8VLkhvkUnrIZA=; b=XLmBLruf6Baels6t/EvD3dCtVpmeb9TNYTJzQVQk4tLavabLOhsQY679w3wXspVQD/ lg/OdpQhPpO3JxRmvrQ2Ng6Gxzg5w9Kx3E7mK3WGwiJ3vXNfTx7Tu84hJdNoOFK7Kr7M q7mbxKES7/AmBSaV09YXKPMqkIBPnxFxQx9oV3i6QTmoPQAa3ubRN6k1ZGhULDzaWz3K 2PgivEU46QbcHwAcMcjfHLPDz/qOhv7VbN/vjuWzD7T8cutSnA0qZEbiwMM9punw/jzl 28hoeNtY2uLZaxHY/ajvkwPXT0ukw3tOqGr+gHMxOso7hDVXS9OndbpTAeG3300/Ofhc IN9w== 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=SU1SQxfwE/17OA/d1UrUxg1Eos2f0u8VLkhvkUnrIZA=; b=b8DW6UbfSHRTThovN3aCv37S3BckaB0ulXa+TkBl0CESHOpvW4l3fah4KBG+Xgem8K vtS8AMgIK/8DrTEnIWeYdy270NM33pngUOLfA7fSQTcllyO3duCf0v7uojgXXryBOgRd e3KopwzgEqqhnQZdmTkYVM2Vk0dT7WUFFW1gMvWYQnSFtU9BPWFIW8hhyCGO59Qt5Vx6 TKywzuZfPRS+XECDmwrjPKD66OpRzm+5G39GJm1ad1rW0LXXwfcUMR3oxOmfGW0ngYHx OIZNFsQd5JZ409rvdAiaP/bpi/bQfCmFsvsNOpwFPMh4yW8TIPl7FQFGQI2ODLxy8zmM AJjQ== X-Gm-Message-State: AMCzsaVEeQqw+7YR2ZzSm5daWE5ZW2lLlwVcLdPar7rXZyFhDPRuA0Gq l2NfHTR20YQ/ir/MsrXsU+LUaw== X-Received: by 10.28.94.3 with SMTP id s3mr1289524wmb.78.1509014799985; Thu, 26 Oct 2017 03:46:39 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id o7sm6102295wrf.31.2017.10.26.03.46.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Oct 2017 03:46:39 -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 2/4] usb: xhci: remove unused variable ep Date: Thu, 26 Oct 2017 10:46:23 +0000 Message-Id: <1509014785-39823-3-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.c:2853:23: warning: variable 'ep' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe --- drivers/usb/host/xhci.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index b12b2bd..eae86bd 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -2850,12 +2850,10 @@ void xhci_cleanup_stalled_ring(struct xhci_hcd *xhci, unsigned int ep_index, unsigned int stream_id, struct xhci_td *td) { struct xhci_dequeue_state deq_state; - struct xhci_virt_ep *ep; struct usb_device *udev = td->urb->dev; xhci_dbg_trace(xhci, trace_xhci_dbg_reset_ep, "Cleaning up stalled endpoint ring"); - ep = &xhci->devs[udev->slot_id]->eps[ep_index]; /* We need to move the HW's dequeue pointer past this TD, * or it will attempt to resend it on the next doorbell ring. */ 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); From patchwork Thu Oct 26 10:46:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117188 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp604852qgn; Thu, 26 Oct 2017 03:46:53 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Spe/C8MYbW0Lg4Rb0+M1po7kTOi2tv7iFg0x+acSRox1vSS8d0CvgVrD4zS3MBNe7nn4TG X-Received: by 10.98.17.156 with SMTP id 28mr4947191pfr.80.1509014812904; Thu, 26 Oct 2017 03:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509014812; cv=none; d=google.com; s=arc-20160816; b=HQ+z+AmzD0xDaEHHnqiKESTjDbt69r5Fb2PWC9vgcOGic2YxaPhnSw5EKllOhorzbt W2cUUAb/twS98MESypL6vZXqa9QzYqW1TF1aNOnPyFvuXc57TxGQdT6UtMydPgmd8fbQ 1D4bQBVsZsuU5QogrVJVmyMYblHaUZnLrWPtrs5dcadpKiUgOuWo4uBGFGHaYyP0K61l rxOHKbhaU69qVMUtXCP5Yx7TINMNm1+PrU+zpuMe+jtMwqcV34FdRtrD4/9LCLFhbvKZ oDaKCEr/fv1T1hxuuo2n7hj21OFJJUhVag/RdoCucGvrZ+ikoVl3gQbn8UV+4lYS7sz8 zXxw== 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=wUDS4FBSCn7xyOqmOwuBJEwQGQ+3VucEtzOKPImmmyw=; b=ODxOqsyugsbKPxhYeEfQ7fomTdtzuPh8tqb5/wiTT4w+M4UGFdTkX3/UfqeKnNDLnT 6JCE6/OmubU35Q4CmKlZIDg0oV67uH8tceLc6VddVX8D6qBAQhyCCmfxNy8cNAl/8eM6 xVxuCFTqBiyOVAtMgqp8z1gkdB0Oe/alXJ7aeiNqfJ6HeKIjB4Gfqa1jNdqxxs9otfRq vyMK0Zpd2aiZq3GpiUnTch1J+QqGcHc8bwPua0qyGUvVZxhGZjQj9a1otZ5EQPnOruE+ TL6do2poTs0fS+84WXe2rmzMQY1mBO7yBh0Sf5OGsOJFReEP5NoPj/BPUX8qLAJhiCpq IZpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=lVBG/7SV; 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.52; Thu, 26 Oct 2017 03:46:52 -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=lVBG/7SV; 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 S1752003AbdJZKqu (ORCPT + 27 others); Thu, 26 Oct 2017 06:46:50 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:52250 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751933AbdJZKqm (ORCPT ); Thu, 26 Oct 2017 06:46:42 -0400 Received: by mail-wm0-f65.google.com with SMTP id t139so7377123wmt.1 for ; Thu, 26 Oct 2017 03:46:42 -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=wUDS4FBSCn7xyOqmOwuBJEwQGQ+3VucEtzOKPImmmyw=; b=lVBG/7SV8/DeWpJueetv9pkaSZKKkEtPb1LN3ZES29pCIoeAwtxR8i89Mj0+F98dzd qBQ+ZYhpeiK3YOpy/Yfs+mWg3V+be7L0Yn8DEwmXRxiAJakmnLKrclBEJJdjdpTgVT3U Q0vitB7MnRiZVuKkRika3J328tnXPDZV1Y4VsIqH99bBLtdoLd4OZh4vmCtPbILv/AJW srniT06UG5ec5U9SnUl+YzrORkFtzO5pU2IQqnHBGixSTwmAAoztA6aejsb15IYO3e2O sfrr1+22vBI1gONqv8P7/GJHAHfLSlILPxM98Hd/dfBMY3Mf4y7Uyc/dav2960T4C87b AZdg== 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=wUDS4FBSCn7xyOqmOwuBJEwQGQ+3VucEtzOKPImmmyw=; b=pu74JH6ApkDZuIDXMNmDJXn+WfysHmaGlnj3OKipd66L0NDQtTMzGLZHAoGFQa0AYj f12VUbFfs2wlgxzIepywVKdO1SMMQFzNeqDZYkJNlv/x29phvZb2tu7OICoqt50zNeVe F2PVdZQGd0qSmW31IrAefIP8nQfGiztD6u/KzIde/j+MBtYpbD9dq/B9ei1E0D9GJaou +AoxXp1h+2SlZPRnORiHAScbqEe+UIG28VoX/KV+0CqXbiql41s84LHcP5c2xx3Jl1Xm haQCEA4yNYiiNsjH30S1Ggm03w9NxneucBpqmHprwGuwdxgfc+Lf6Lsb8HS5F1/csbeq 21zg== X-Gm-Message-State: AMCzsaVp/xhpBPVcHCpzAQjjiFQ41VkP5atxuxU0y3H58OjI8y1B4zGQ xkAhV3ZhdazR/1XyZzlGpnIGfQ== X-Received: by 10.28.98.212 with SMTP id w203mr1360695wmb.88.1509014801577; Thu, 26 Oct 2017 03:46:41 -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 4/4] usb: xhci: remove unused variable ep_ring Date: Thu, 26 Oct 2017 10:46:25 +0000 Message-Id: <1509014785-39823-5-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 warnings: drivers/usb/host/xhci-ring.c:2011:20: warning: variable 'ep_ring' 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 942eeb3..27d657e 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -2004,7 +2004,6 @@ static int process_ctrl_td(struct xhci_hcd *xhci, struct xhci_td *td, struct xhci_virt_ep *ep, int *status) { struct xhci_virt_device *xdev; - struct xhci_ring *ep_ring; unsigned int slot_id; int ep_index; struct xhci_ep_ctx *ep_ctx; @@ -2016,7 +2015,6 @@ static int process_ctrl_td(struct xhci_hcd *xhci, struct xhci_td *td, slot_id = TRB_TO_SLOT_ID(le32_to_cpu(event->flags)); xdev = xhci->devs[slot_id]; ep_index = TRB_TO_EP_ID(le32_to_cpu(event->flags)) - 1; - ep_ring = xhci_dma_to_transfer_ring(ep, le64_to_cpu(event->buffer)); ep_ctx = xhci_get_ep_ctx(xhci, xdev->out_ctx, ep_index); trb_comp_code = GET_COMP_CODE(le32_to_cpu(event->transfer_len)); requested = td->urb->transfer_buffer_length;