Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2477723pxu; Mon, 14 Dec 2020 03:26:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOMHi05fxp2JF4tzo2AA+8fACid3S94FUUYA7V3s3HG25UXOXOh1+6uNzbtKy/zUYuQEfl X-Received: by 2002:a50:ed04:: with SMTP id j4mr25033047eds.84.1607945161092; Mon, 14 Dec 2020 03:26:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607945161; cv=none; d=google.com; s=arc-20160816; b=ABuVn96wQ9YHpIU3gbtHEK8H23xidJ97u2WaaaO+mO7pBHIdFv5412x7AZGfFBMMvb PBWnaFVtNyn2DSBEC7z71c2ysTRfZi4jgmEoDmKvtL3mM4djTNliYqcGmPU509y8SsV2 kCdnC1OgEwx9dT7LTPnram4GvgPu+1JAoZmPyY65J0q0h5SVSzY4cbhDPRORLjF3OqYg AEoMT4D2JUk1HHA0WFsFeEnYaKBSvOuaJhgQeHeyLI0po+8OJ0DJPaMA9Nan3M0OP9dV B57h0GeSliucNKyHBlIOcK7YJ5ST0EtydE+PSRvGjBy6nG2qoAEILXZHCgStg3eiImWT Szhw== 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=PbbRehRKT12Qv4Xz+vkzTfJVz7vp4DaWIYjtc7UaS90=; b=SxW9nqJJVcnrxicZWjpH3gLCTrW7kaq7VQCY23AVPCdJlz+yoG/IYEKSvBhZtAAjLr rx6g+1r3c53+3tx1sa+0bfpmY6jgaABwleMZPGaM7QBhGhkGwmeTdfhsnJutBXOc2jo1 mJQ0PUIUFjNyx5DAP2qoHY/IE3Q4gXO1RBaU1zr48QSMiCjMnZkA2moQXKBIC/oJWxWu aB+XjmC0fvlEIOBaIh3ESTS6PXOxqJZyC9Jv1vG3p+MQcnBk09yB7Owkmq5vOTXnkaIe ubUlqxz3a9p7KXOhrZ0uk8blHr3pyHYlZu5tn/9qreXWUf/k9XPw/C2AdNXDVVhp2WbF HziA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p11si9614519eja.213.2020.12.14.03.25.38; Mon, 14 Dec 2020 03:26:01 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407668AbgLNLWA (ORCPT + 99 others); Mon, 14 Dec 2020 06:22:00 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9603 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730396AbgLNLVk (ORCPT ); Mon, 14 Dec 2020 06:21:40 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Cvf7X2cShzM52m; Mon, 14 Dec 2020 19:20:08 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Mon, 14 Dec 2020 19:20:44 +0800 From: Zou Wei To: , CC: , , Zou Wei Subject: [PATCH -next] usb: xhci: remove unused variable Date: Mon, 14 Dec 2020 19:32:11 +0800 Message-ID: <1607945531-15059-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix variable set but not used compilation warnings: drivers/usb/host/xhci.c:1338:15: warning: variable ‘len’ set but not used [-Wunused-but-set-variable] unsigned int len; ^~~ Signed-off-by: Zou Wei --- drivers/usb/host/xhci.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 91ab81c..24e5a0f 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -1335,7 +1335,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; @@ -1351,10 +1350,10 @@ 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); -- 2.6.2