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: 12281601 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_RED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE414C4708A for ; Wed, 26 May 2021 13:01:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A24C060FD8 for ; Wed, 26 May 2021 13:01:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234972AbhEZNDC (ORCPT ); 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-Google-Smtp-Source: ABdhPJzsAmNhDuFQBE7dXWarbIFgbk+PFmqcRu/uTYJ+ik6VMUhseTcDyNRqrQyCOulgDbUQOxCKGQ== 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(-) 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);