Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp380678pxf; Thu, 1 Apr 2021 03:45:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxL8L2q2ZVdd4Q8DfzuiXKeVvBCQ/UiyKU5Inr/uVbVlb5hMO4jdhKy6Tp4Sx8OkiOu66E4 X-Received: by 2002:a05:6402:3115:: with SMTP id dc21mr9201976edb.173.1617273947440; Thu, 01 Apr 2021 03:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617273947; cv=none; d=google.com; s=arc-20160816; b=AkD1WP2nEC6u58evSSm86vVQ/jDsdFX9CSGC6QAWs4uOc+hOMG4qag0ZeiOu4WiiEZ iHdIFQzDV4yp4pH0oEWu4m8ApcYT/lCjM0QWpImOWmxlNQcMBzS80hKLASSHO58zuzkh Q5ajzeCt8wTkIQRFrDVFIzS+ZUsdOsripuiiruAB5V6RIjA8wqhUsTAeRidFeDdWu0Ky jq+7I/qA3S9pQCOzuxsIvTNol6rhZDUmhsk0bwuiofjg6ZtpcjILK2VKvEmqIftbvYzn kT/q9STO906nwxA7VlYi9mVWLCiV0azeeRfsfdRAHpL0hr46/RWHKyV9hNwKJiartPpU MR1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Vw975Ci2FBVceM+zbL02FSuDhNNIZvKO8rWvSVmRwzg=; b=d2a60peWQinn0vN1LoGKOqJ9yx+jDrgBZAsQtbQvyJ8V+aoWxkYne0QevfNSgRwg5H HjYGCiQgFSRFte0cbXpmREneAX71HkNgkGzX8YONr516mHe+5nmwN1ju/mX6bZVx47TQ Dc15N/PUfbnC0n/PLqm5eX76C6QTktoXvCViyMkStUB8yaPTZFcQUwLXf44VfsvWXmwE Yv2x8vTYLJmi3kJsXxa1+Jx7DMN+CAm6FFETAewmQkIlCDeXRNMpOQ2mA7UQe8Qu9bfY WkLKoHs5fP8e7rObVICGU+fFY3/EOwy6RBzX38EI5tMTPc0Dosfq2taLBmzXHHJEEb9I 9OBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zP20778W; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si4097538ejw.51.2021.04.01.03.45.25; Thu, 01 Apr 2021 03:45:47 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zP20778W; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233970AbhDAKob (ORCPT + 99 others); Thu, 1 Apr 2021 06:44:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:48396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233780AbhDAKoH (ORCPT ); Thu, 1 Apr 2021 06:44:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 87FD560FED; Thu, 1 Apr 2021 10:44:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617273847; bh=7grKtL4HFoTKoGxPCq5J7Opvb2ADbNce8guDq6kam5g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zP20778W8eSy6iD1mXRZknns9TyE5nt4vh1CuZG+rBs6EljQ6IM/pEhEjF7rQ2+kU 63yafNk8Tg4Skv32PJSLSanlUJP9mB/5jTah31go2F9oGX5wiAvlXurE66l48M/aH7 EDftMAOtfAPGjRTyDpcjdcWJhy/o/eA2v1r01/Zg= Date: Thu, 1 Apr 2021 12:44:04 +0200 From: Greg KH To: Jiapeng Chong Cc: mathias.nyman@intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] xhci: remove unused variable Message-ID: References: <1617272235-62515-1-git-send-email-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1617272235-62515-1-git-send-email-jiapeng.chong@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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