Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5470270pxj; Wed, 26 May 2021 11:14:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTko7RPogTgt/CmKD5gsNr+4rXh6nqK5rvDrZYjhPTDmMvkiqSsZDuintLEXzUnaV9SojB X-Received: by 2002:a17:906:5917:: with SMTP id h23mr35503134ejq.457.1622052842419; Wed, 26 May 2021 11:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622052842; cv=none; d=google.com; s=arc-20160816; b=eBqb6xykqne0VfuXyBMU4qtw1kTrCfRmBUmxcGh3umPEWaBXkeB5S0VR37BoEE+W+a lmUy6E8Q0P3SeHQ+xPKtUSiwfuvQHn4IfcWV2wvCMq0/s/TQNv/Uhw+1JsJVHjtDXj1R SuZ/By+fMpbmMICeDgemg2/o3wJlCvCHuj0tbe2G3zb8XU/OvderDDmb7+b2IT5gwek0 q4a18AIl24NuQOvUG/l2/cbBiW+o2cs2ooAUdKm0YQoo3iiM+q3wENW9kynCotX6xfWS w6NCpXIfidnXzH5oMO3fwyR4zm+DLNUKuur92JM/9P44lEIp8I+TAcrWRU6fmT8aCYmO bzVA== 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=vpKl/zd2fWdDBLDhvTcwTxYuzodTXlt5L1GncaiBsjZbFL25uXbGpVupn8bADuQ2/9 NpGleRPA2P3/EtTaor5cnk4O8LE4VsurbL54KlqTAb1W1lVSD1KRHD9rvAI7z9qUQkmv 4RUur9DL6I1VcSDClgNA9QkvWgyrfdl+uB6RjEvebTJ/x0rpkkd2PniG12QpTji/jatJ GORCm6o5IcueLHG5QdnhlTdqRGVfP6Lz+bCTfNWaDTe4tHiPO4VaoSQB5BmtnmjCo7zS VE02C4VoWiCgyerDUyJeDDjV/c2ejBb1acliWz2Ks1b9mb/i64WBel9hbdP/UeIP9qVE AyRA== 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-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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si92623ejh.126.2021.05.26.11.13.38; Wed, 26 May 2021 11:14:02 -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=@linaro.org header.s=google header.b=QO85f8fS; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235228AbhEZNDj (ORCPT + 99 others); Wed, 26 May 2021 09:03:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234981AbhEZNCm (ORCPT ); Wed, 26 May 2021 09:02:42 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96769C061342 for ; Wed, 26 May 2021 06:01:05 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id n4so1059615wrw.3 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=GMhu0peF2V+mLPP48MumNWLZdQ0FsTdY+IEKFS6xiq53oWgbbljVjCJsL/F31YNnZd UH6zDHl0JtXLnP7Ribh4LRXAHt8Kb2Gu2C9Tf6mAI2h7vgcK+HCTJ27Gi4qVkAzQR/Pr T3pQ830jSayfc0ELqNZjOMYFO6bhi9DYaIq5QznaYMTPBTeXD+VnPjrP/CUYfWmY5THK eAiL06K5azRy9Qy7tCYTXjOypxaUwvlOtOMbb0ghOu4/55pnytXDc2XCVfP8dO0szEam WKXjlIP+mE2OopLEAN5AhMgvfLXAO6gndplizK4Ja5aGFpn44dO9mSH+g/ssY5P3W8Xr CX3Q== X-Gm-Message-State: AOAM531C5vKLHaeFkV+Emfg87yqd0J0dIaafnuLuZAhvnCTwLB+8IypS QcoTz2x2nTrZyNy00wgKW3RsXg== 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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); -- 2.31.1