From patchwork Wed May 26 13:00:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 448195 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp5199161jac; Wed, 26 May 2021 06:01:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxi+Cw3mr3DyvlYl1QfaSDAlGvW7f517sOkvBC1XeTkdQDMszSoW4/ZEJzy0qBruX0rmazS X-Received: by 2002:aa7:d758:: with SMTP id a24mr37358338eds.220.1622034096539; Wed, 26 May 2021 06:01:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622034096; cv=none; d=google.com; s=arc-20160816; b=ptNYNLSlAJLKf6Ii0ZtxQmeH4D54saUOTc/Ogsb4SVakoYJ+dvRxp/tBqn4jTI1eXR hwIVqcuwuTU91nze2a3+iZ9CvFk8/CXQd+2bEBYLycSz60FSNC8nWkbG0EgqhNEmxe0v UiyuXK0rZmVStTbqjHpg+twz8nOO5ocWifZi3Xix4rXBgfY7Z2zXO6xZr1w3u9txaeGv DtU15yuVt+1ZD04NOM41yFxFVpRnJxHMWHVPWzRy65dw7DkMPOXFxMihJNe+nVAYnSOh R8IHfevf23VtmYEfwqspl7aTivzYddy9k7D7rGUrwzsqNF6LPnbo+ggIeX7ZVXqkvRSp /Flw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3jdajWMgqTEevQnjfYptjO2LrKj54lhAc8vIof71IVE=; b=APz1k8v4Y9Avr0FTHkj5OmtzNItcW/pYpiUBJNzNZxQdpzfDMC0Kz29mZf7mkRKF6+ TADB56jMX9TL06KLXM/KUY8BEZKygLbvGlTsEvNAAdnFsPFrqEdjoW77P9q9Rod+n+I1 KF6Xi40HtmoNVT6pTQsQEuEMD2USCEyZX06CWtdAhFpuUhy+4yyJqBcvshMa1c3tP7WQ 20wKCNVyoAgbZ2h3VZJaOou7dMXRCwsxgKkcBqcdQLnOas1o2rPug3q0GfLhXRd0Zja9 hKsgD5+uZsAqh+wC11mueXb1RefxE4G/1JR1J7MqzQOq/TUoqoe/TfENIGERfd/ho6In CtqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QO85f8fS; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y5si6688603edc.226.2021.05.26.06.01.36; Wed, 26 May 2021 06:01:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-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=@linaro.org header.s=google header.b=QO85f8fS; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234972AbhEZNDC (ORCPT + 4 others); Wed, 26 May 2021 09:03:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234854AbhEZNCk (ORCPT ); Wed, 26 May 2021 09:02:40 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91E3CC06134E for ; Wed, 26 May 2021 06:01:05 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id q5so1051538wrs.4 for ; Wed, 26 May 2021 06:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3jdajWMgqTEevQnjfYptjO2LrKj54lhAc8vIof71IVE=; b=QO85f8fSQ2woLVQ02nICRzFe1RXyo77E4GBSpDGDeLzwqyN2dWPu2dKJ1c/3QzqoVP pcYSovyiCXwGho+nvUEMJjxSJPvH+wI7l119e+1oRcY8Mwtsr3vad+x/DVEFX+3gdKts rC4qLro+xXDUpuaMU628QkULLoAAnwo+ywEiyg6ceCZWvPlbr74piwt+Yr4yECJB8rf1 U1/QLJPtl9+v8Z3IDXGHKopVs3iJrrg417eS/OutESgHmXAVbURlAsbKfwyR7RrkzOCx tCTBkONR6X1PCTbP3lf9ZTCZ4LUGXj+C/IPF1vBcPo/9SYYw2cPNnwCnEqnT1OqRaj65 IoDg== 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:mime-version:content-transfer-encoding; bh=3jdajWMgqTEevQnjfYptjO2LrKj54lhAc8vIof71IVE=; b=Tvt4iSA5Sv6Ws6B41wWcB/Z3XKTH7zdYo/HwGQQu1iNLig7uB+z6z0A9HFIXg2jqDi rCzWUT9Z7Ck++f73qbyIc5ml7HLtuYRLJ35T7H5hcCZ1qZgkDD1KRsI/kJFS97r22Lg9 FFguti3qOJuVv1bLJDKk41O2GWFv5zwfOfNB/F53lBrpyxdUl4al8TOozx9Dauhg7C09 Ut4ZBlC63NH0nxeQPIrJyZDgv2pQ8Zo+0CjMQO0rd+4/aUf63bjT+UsQ6sS/Y4qAUiQZ a0JVyUJUEPgJEdRdWooLWyOkjmlsLN/+yXNqqDuMTc2v8wFp1TpK/W4x0aDtkhjvRTWO 6p5g== X-Gm-Message-State: AOAM530h4c0jw7oeBXV2YlOzRVifIUf7/vkNqAc1kkm1fSHVg51UgBoH nQFiPdxweEsmwVGQQuS5O3qRlA== X-Received: by 2002:adf:f0ca:: with SMTP id x10mr33633781wro.40.1622034064188; Wed, 26 May 2021 06:01:04 -0700 (PDT) Received: from dell.default ([91.110.221.223]) by smtp.gmail.com with ESMTPSA id y14sm6430036wmj.37.2021.05.26.06.01.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 06:01:03 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Mathias Nyman , Greg Kroah-Hartman , linux-usb@vger.kernel.org Subject: [PATCH 17/24] usb: host: xhci: Remove unused variable 'len' Date: Wed, 26 May 2021 14:00:30 +0100 Message-Id: <20210526130037.856068-18-lee.jones@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210526130037.856068-1-lee.jones@linaro.org> References: <20210526130037.856068-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/usb/host/xhci.c: In function ‘xhci_unmap_temp_buf’: drivers/usb/host/xhci.c:1349:15: warning: variable ‘len’ set but not used [-Wunused-but-set-variable] Cc: Mathias Nyman Cc: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org Signed-off-by: Lee Jones --- drivers/usb/host/xhci.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) -- 2.31.1 diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 27283654ca080..ac2a7d4288883 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -1346,7 +1346,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; @@ -1362,10 +1361,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);