Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp372028pxf; Thu, 1 Apr 2021 03:30:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCj3f2WvPfTl6hK+k279cp3VrfxgNcosj7ASKg+WYo4pXq8npFLRKK0NSt/NFA3l7QF9u0 X-Received: by 2002:aa7:d686:: with SMTP id d6mr9119824edr.146.1617273001108; Thu, 01 Apr 2021 03:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617273001; cv=none; d=google.com; s=arc-20160816; b=yVy68w2MqscVYufK/g9C4vZBPNPk9XmTNVIlzWxNBeqv0oYuCTdxVbYLOS++YXBBYe 0YKNrJpX9AbvEDZ2eqGvbuU1TL3W44tfp5YugP2Dj0Zw9O9DUHNoVC01Slb0d3BZZEyn i6TOaYiaXvkyP+Z/fEpsix/TLGlhk3k7/v2Oawdmu6rwWO9FRalfGrUwKkh2mK5vjum1 I699B45ilLfRQcV2Re8fM/Quo7GqH3H52++DQKp0iJQp0fmGmm//LFKgGyurvxyVaeSc Hh2yFS7urBUq6j6WW69JfjIJBJJAjwzK7xyYv3t570BWMcQPJi5bLYNb9VrNIuMFKR9m Z9vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=MQhMceB+Nvzn4nqIrwsdTkTAlyO6fe8eYXN6oHLnmcQ=; b=eJC7mgYT49F35PPlJZZgwCZP67NPsDbhS1wSzAIjQaNsUt4SfgisRSQh2wXCAOwfj3 32xrquNZqqKhXrzadRXj0gJREBrRHMUguHAQSCuvzuwm0wdlYhgybwcj9gb+ys5pxl6O 0WqKjYBKZvF7hKgvvRsRt+SHyWnYhfYHHIFr9TCRLg0UWK3r4NNRQm/0HJMOCIhx+L0o mptfwv74MWRsBXIYqgYhyJ/lH76sxVtXRHUH95G0u4HHu0V+PPbZv7wd7sKZ3d0u5MGO ADaPxJk/DVViHO75KwE0GuAzFqkiipmilBVXPUBjGXJdeUtoAYW/tuZtSeHaZf3KlREu z5Kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si3637426ejg.130.2021.04.01.03.29.38; Thu, 01 Apr 2021 03:30:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234120AbhDAKRz (ORCPT + 99 others); Thu, 1 Apr 2021 06:17:55 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:48022 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234015AbhDAKRZ (ORCPT ); Thu, 1 Apr 2021 06:17:25 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UU61cAq_1617272236; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UU61cAq_1617272236) by smtp.aliyun-inc.com(127.0.0.1); Thu, 01 Apr 2021 18:17:23 +0800 From: Jiapeng Chong To: mathias.nyman@intel.com Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] xhci: remove unused variable Date: Thu, 1 Apr 2021 18:17:15 +0800 Message-Id: <1617272235-62515-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following clang warning: drivers/usb/host/xhci.c:1346:15: warning: variable ‘len’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/usb/host/xhci.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 1975016..0ead09c 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -1343,7 +1343,6 @@ static bool xhci_urb_temp_buffer_required(struct usb_hcd *hcd, static void xhci_unmap_temp_buf(struct usb_hcd *hcd, struct urb *urb) { - unsigned int len; unsigned int buf_len; enum dma_data_direction dir; @@ -1359,10 +1358,9 @@ static void xhci_unmap_temp_buf(struct usb_hcd *hcd, struct urb *urb) dir); if (usb_urb_dir_in(urb)) - len = sg_pcopy_from_buffer(urb->sg, urb->num_sgs, - urb->transfer_buffer, - buf_len, - 0); + sg_pcopy_from_buffer(urb->sg, urb->num_sgs, + urb->transfer_buffer, + buf_len, 0); urb->transfer_flags &= ~URB_DMA_MAP_SINGLE; kfree(urb->transfer_buffer); -- 1.8.3.1