Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1159684pxf; Fri, 2 Apr 2021 02:57:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwybxR+k/eaPQmLMR/Wcek+b1QYvJtPa1zYMZn+/6lsRAenKGfkgAzcgjP6pa3cYWHfoGv0 X-Received: by 2002:a17:906:1986:: with SMTP id g6mr13077646ejd.533.1617357421956; Fri, 02 Apr 2021 02:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617357421; cv=none; d=google.com; s=arc-20160816; b=nvJP126j+OZg3Bbs4J/ygmPuG7lrrcfVXMlriOs4nZz9XuMLiM/Lw1YIhyeOHqpcnj PPNLh3DAualxIiuP7d+nN9Nj3OwwIGhJFbIbclUlLO9He3MmEm8cq3gsrZ1Wsja+QCqG xz1doxRlY1jhz6ZH2ofhpch6NlzdFexGpJi4MNwolhu7ONumo6Ke8fLwb+6WaY16P2rK CNe9ao6KAqaBuPW56dVZ+UtoqqCfIHoSXad3HmM19cd6mjAnzDkVDDwYZLZUHoJBbEUy +4V9CFvCxaq5NpETl+qNwWETnrO/3oZN7ECZgFxEQ6h8W9pNMp7p3Q2R1a2NQp44TAkQ DU/g== 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 :message-id:date:subject:cc:to:from; bh=NxxsEsbe0sBZmP8QyZPQQe+fiidNf7w/Hqod8+urOJY=; b=OovwA7EGFLEq00gaY3hCRC619lKjiAFraFZj4BJBx9xtRQH3bptcRPvOcwfvP7Pair 8QplEJTg9sxT8MhTG6ggQ4zmf9NyH1P/ZppEIqxhCh4eX5LD7T3mRT1myHY0tpohXhd0 HHELeWmCgWmx/H+NISaWZqTRO8dvmxh26Bx6H7KDXQEDgrrGawnaxfcEnrdXegGpW2Ut v64f8Q5smzESr2QFy3efBxF96uqCz/nTIA+3LqI7Ilm+2SjHs75UzycGu0Amm4Wwx8pu oErcry0W6W2Bnb+Yr58PH3eQjTd7r86ggAI5DPjSMkdTz31notvMfneMQemUbp9n8UHE RZ/A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e9si5830555ejt.385.2021.04.02.02.56.37; Fri, 02 Apr 2021 02:57:01 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234722AbhDBJx5 (ORCPT + 99 others); Fri, 2 Apr 2021 05:53:57 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:46051 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231160AbhDBJx5 (ORCPT ); Fri, 2 Apr 2021 05:53:57 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UUEHCRZ_1617357233; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UUEHCRZ_1617357233) by smtp.aliyun-inc.com(127.0.0.1); Fri, 02 Apr 2021 17:53:53 +0800 From: Yang Li To: ulf.hansson@linaro.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] mmc: moxart: Remove unused variable 'dma_time' and 'pio_time' Date: Fri, 2 Apr 2021 17:53:51 +0800 Message-Id: <1617357231-93064-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=n 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/mmc/host/moxart-mmc.c:257:7: warning: variable ‘dma_time’ set but not used drivers/mmc/host/moxart-mmc.c:395:7: warning: variable ‘pio_time’ set but not used Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/mmc/host/moxart-mmc.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/host/moxart-mmc.c b/drivers/mmc/host/moxart-mmc.c index 89bff4e..bde2988 100644 --- a/drivers/mmc/host/moxart-mmc.c +++ b/drivers/mmc/host/moxart-mmc.c @@ -257,7 +257,6 @@ static void moxart_dma_complete(void *param) static void moxart_transfer_dma(struct mmc_data *data, struct moxart_host *host) { u32 len, dir_slave; - long dma_time; struct dma_async_tx_descriptor *desc = NULL; struct dma_chan *dma_chan; @@ -294,8 +293,8 @@ static void moxart_transfer_dma(struct mmc_data *data, struct moxart_host *host) data->bytes_xfered += host->data_remain; - dma_time = wait_for_completion_interruptible_timeout( - &host->dma_complete, host->timeout); + wait_for_completion_interruptible_timeout(&host->dma_complete, + host->timeout); dma_unmap_sg(dma_chan->device->dev, data->sg, data->sg_len, @@ -395,7 +394,6 @@ static void moxart_prepare_data(struct moxart_host *host) static void moxart_request(struct mmc_host *mmc, struct mmc_request *mrq) { struct moxart_host *host = mmc_priv(mmc); - long pio_time; unsigned long flags; u32 status; @@ -431,8 +429,8 @@ static void moxart_request(struct mmc_host *mmc, struct mmc_request *mrq) spin_unlock_irqrestore(&host->lock, flags); /* PIO transfers start from interrupt. */ - pio_time = wait_for_completion_interruptible_timeout( - &host->pio_complete, host->timeout); + wait_for_completion_interruptible_timeout(&host->pio_complete, + host->timeout); spin_lock_irqsave(&host->lock, flags); } -- 1.8.3.1