From patchwork Wed Jan 27 11:25:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 371509 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp183133jam; Wed, 27 Jan 2021 03:49:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbUYVZnJknMPazxwE6WP9XdMkKn20UjxkcfjxCqyEcBoWiVcXW6FWq/LzTckupLCR3nPMp X-Received: by 2002:a17:906:94d3:: with SMTP id d19mr6202954ejy.383.1611748146415; Wed, 27 Jan 2021 03:49:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611748146; cv=none; d=google.com; s=arc-20160816; b=VXiKwoSeyd/IxDH6XIVijHbWCFOwtHgePQ7tMjRqDADXEIOX/xXGZCg9XmwUxXmt+P PYlJ9Zb7WZP32GsjvwrPqPyS3fMGLklBYzlsgTuRnUI9FHP5e9GdNdGr+wSjifoKfRD1 Q+yjp16b+HChZjk4LpSTwviT+GNUjpjoToTKlEBrZmf+XmAd6E1NAKcJ83vKE+SythBv /mG4U6uTlN7NqYVmq0cFsD9ROi5SGd/RIqraEwBDc1q5XZDJ39UfBJFHMhefbjeXQZjt GSVEjdHx2ciNaH8ifolrEfgo4tpKJc+eTJBtBQu3hyh2pC2tNrzchrP59xmhLrtWQ/iR Shnw== 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=mqKIorWT4gXh/otNkPIF0uCkC/OA7zuZgaSdIUKa4VQ=; b=hZx6xsUzW7/xCJwu5pWFn16XNtVsd57PwKFfCY62k8LAHYoN44UcUSgM8wSVf/hoe2 4oLaq2SfBSc8Ef/MLj1Ny/vijG3RTo4faynBB8xnEpQvuFqgy0dGkwRUiOSMLCMXCc9T RC4qa3pFfXhurfH+17XcVT4ApQ0OtBYcJgMC2fSGJ+QAQqOr3RUunERbJpHpLIbC9rSG rCarE/BYr2Rta0qLx91A9WetpLPxD2EAvQubEYyxahs/oqaECexnVhb+ZIPPuzBmQSzN cqIGiyFAEDdE46xRiqAT2EorW8nbolRtllxg201kGHI7YyAlba9BU3VCCKO/JT8UJXAG N5IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aENfasNI; 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 k2si929502edx.44.2021.01.27.03.49.06; Wed, 27 Jan 2021 03:49:06 -0800 (PST) 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=aENfasNI; 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 S237135AbhA0LtB (ORCPT + 3 others); Wed, 27 Jan 2021 06:49:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232148AbhA0L2O (ORCPT ); Wed, 27 Jan 2021 06:28:14 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70276C061788 for ; Wed, 27 Jan 2021 03:26:01 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id j18so1223705wmi.3 for ; Wed, 27 Jan 2021 03:26:01 -0800 (PST) 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=mqKIorWT4gXh/otNkPIF0uCkC/OA7zuZgaSdIUKa4VQ=; b=aENfasNI0ky/TTcKZj0RBlkmPCXTD05TgexoPZIddRhq2koMze0DuPLrwkMae41+Hp c4o6F6D3wsQBlrVlCmZ7aUQdCCtmmo1Zy/78VoBb3SeSGekBmMxa85XjSaL4+Z5W0ASW frcfDqvGEiRbLqe7mqxqfEYadOGB40lkBdpuV0z/FjpwvW2yJL5Pwh2NNPym0lQPP6q7 pVSQBXlr8NMYn89mIrrXheymk2bzoxqMB3pRsyc2GhVhJsPvPEnrPk6YOe4MBLgROBt8 xFOHtLnV/n+gPs2Qyi3kw1aR/PrbGWVqpF4DWAU84kXuY0JrWyd6GPdZQd3BqmzT/enI 8/Xw== 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=mqKIorWT4gXh/otNkPIF0uCkC/OA7zuZgaSdIUKa4VQ=; b=szy+5ItlInO8AwU1Q27DtdyeIBk8BaC5wahbpbnk4BWzKLK50vLjGFLBMyYAsI+Snm L0cRWwANlw2PbeTrEMMyb6c0TrwmB7FqHNB6YzBWqvfsq5V0QtUhYPbLsbTZK44oByAc /ajl9s0VQnSJsH1Puh6pDgJLiSDq3Ydso61zisw/dA7IodPaI09sGZIBoqVmT4gGZSoY 9GYJ2nPHRh7M0A6+mwK54z16m0Et7dRm5vbQif1VzSYcKpUJvz5Bc/qALahEAo/HoITx tdgCoHUNjo1x5iZVo/WyXfPLuTdXd3BN3dPwHtrErrqEHVlALm3Ibdk/uZroRMWK2ZI/ znrg== X-Gm-Message-State: AOAM530D9FAkQnH/aR9w2B6xgR9A/vrV+tTpHDT9uj4/lOWxKwIG7i4B ItofBbCcQsHnhWHgOUQNuOfsng== X-Received: by 2002:a1c:4483:: with SMTP id r125mr3710279wma.80.1611746760177; Wed, 27 Jan 2021 03:26:00 -0800 (PST) Received: from dell.default ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id m2sm2040065wml.34.2021.01.27.03.25.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jan 2021 03:25:59 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Andreas Noever , Michael Jamet , Mika Westerberg , Yehezkel Bernat , linux-usb@vger.kernel.org Subject: [PATCH 01/12] thunderbolt: dma_port: Remove unused variable 'ret' Date: Wed, 27 Jan 2021 11:25:43 +0000 Message-Id: <20210127112554.3770172-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210127112554.3770172-1-lee.jones@linaro.org> References: <20210127112554.3770172-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/thunderbolt/dma_port.c: In function ‘dma_port_flash_write_block’: drivers/thunderbolt/dma_port.c:331:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Andreas Noever Cc: Michael Jamet Cc: Mika Westerberg Cc: Yehezkel Bernat Cc: linux-usb@vger.kernel.org Signed-off-by: Lee Jones --- drivers/thunderbolt/dma_port.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.25.1 diff --git a/drivers/thunderbolt/dma_port.c b/drivers/thunderbolt/dma_port.c index 847dd07a7b172..5aced91e17dc4 100644 --- a/drivers/thunderbolt/dma_port.c +++ b/drivers/thunderbolt/dma_port.c @@ -328,13 +328,12 @@ static int dma_port_flash_write_block(struct tb_dma_port *dma, u32 address, { struct tb_switch *sw = dma->sw; u32 in, dwaddress, dwords; - int ret; dwords = size / 4; /* Write the block to MAIL_DATA registers */ - ret = dma_port_write(sw->tb->ctl, buf, tb_route(sw), dma->port, - dma->base + MAIL_DATA, dwords, DMA_PORT_TIMEOUT); + dma_port_write(sw->tb->ctl, buf, tb_route(sw), dma->port, + dma->base + MAIL_DATA, dwords, DMA_PORT_TIMEOUT); in = MAIL_IN_CMD_FLASH_WRITE << MAIL_IN_CMD_SHIFT;