Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp312231pxy; Wed, 21 Apr 2021 03:44:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVB5c2QbMDTZDG+H6QEpe9VXAsk0So82wXqi7ihSA756MJi3NSDEt2aOFwsQGACEgwwleN X-Received: by 2002:a17:906:32ce:: with SMTP id k14mr3883283ejk.27.1619001854138; Wed, 21 Apr 2021 03:44:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619001854; cv=none; d=google.com; s=arc-20160816; b=mqBpzT0g/wbQAyw1CYU0ISllOo65JjWU4Pjzg5CkMLJaeo97neNdWcCaRHEHSZ0Ngf A/9X490CytmbZrBszyxB1/VuogvSZAA7G/2uZMG1mALb5+ipKYe8dq6Iq1SHTEEePR// QhqjSU/miG3qD2knb+xTnPPEOBk0FveSUJPcr4DoPH/TyzgZARnBJojbRJSSJHjUIAP+ SfGmbLq1FE2IjURF23AeKpQBvqkNGKg28jBJCOPcSFMorsGReTMIwgbao7B2jva8c5rG R/uXjzOv3UNooUFwJornchTUhX9vVMTWmp4bdPqPaz+GGoe0wWxeWYykXr39du+X3Pn9 DLWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=hBGH3Bij6eskvdPpqNhVESRv7E0oJrd/5299ShMJ3ps=; b=KB6qtLdfqgxWfe9u0F8PT81SQjB2xXStBizVERetaemxWUeXGdDu6vPRMFYLZQbRmn /tKXhyUkX2Wk/Snw0r3Gz9U6T3NAXrVldjsoQl3S8LfiD7qIHj52ciKf8KLqjp3IdCu5 nVAPk7LK48UTx8bBMjwrDXPcU9n93gr+py30WjboSadYKb/Xa8nWQhzpVNMBn1xrzEgQ fKIzj2FRQoT3td/MlvpM6+gjU4zu/JCbZ/3Wuud5ZvgvvGHQMw1nLqbtgMcMMyz4BmBk C/Mib+ai6dlTezL2BV9ANboLCZ9t+LLQADIzN65hAfFxdqFKbx7xQtCLZmHwkrcUxpzH 61dA== 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 v26si1595144edq.297.2021.04.21.03.43.50; Wed, 21 Apr 2021 03:44:14 -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 S235351AbhDUKlN (ORCPT + 99 others); Wed, 21 Apr 2021 06:41:13 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:36818 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230259AbhDUKlM (ORCPT ); Wed, 21 Apr 2021 06:41:12 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0UWI2uRW_1619001634; Received: from 30.0.161.206(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UWI2uRW_1619001634) by smtp.aliyun-inc.com(127.0.0.1); Wed, 21 Apr 2021 18:40:35 +0800 Subject: Re: [PATCH] xhci: remove unused variable To: Greg KH Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <1617272235-62515-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Jiapeng Chong Message-ID: <1bf6144c-9385-d7ff-a30c-f0bb17f9c2e6@linux.alibaba.com> Date: Wed, 21 Apr 2021 18:39:48 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/4/1 18:44, Greg KH wrote: > On Thu, Apr 01, 2021 at 06:17:15PM +0800, Jiapeng Chong wrote: >> 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 >> > > Why resubmit this same change when I rejected it in the past? > > {sigh} > > greg k-h > Thanks for reminding us. We'll pay more attention next time.