From patchwork Mon Feb 28 21:55:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Ball X-Patchwork-Id: 597571 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1SLw4On009862 for ; Mon, 28 Feb 2011 21:58:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752606Ab1B1V6E (ORCPT ); Mon, 28 Feb 2011 16:58:04 -0500 Received: from pullcord.laptop.org ([18.85.46.20]:55621 "EHLO pullcord.laptop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752562Ab1B1V6D (ORCPT ); Mon, 28 Feb 2011 16:58:03 -0500 Received: from pullcord.laptop.org (localhost.localdomain [127.0.0.1]) by pullcord.laptop.org (8.14.4/8.14.4) with ESMTP id p1SLtvZk015140; Mon, 28 Feb 2011 16:55:57 -0500 Received: (from cjb@localhost) by pullcord.laptop.org (8.14.4/8.14.4/Submit) id p1SLtu2R015138; Mon, 28 Feb 2011 16:55:56 -0500 From: Chris Ball To: linux-mmc@vger.kernel.org Cc: Chris Ball , Will Newton Subject: [PATCH] mmc: dw_mmc: Remove set-but-unused variable. Date: Mon, 28 Feb 2011 16:55:37 -0500 Message-Id: <1298930137-15105-1-git-send-email-cjb@laptop.org> X-Mailer: git-send-email 1.7.0.1 MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 28 Feb 2011 21:58:06 +0000 (UTC) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 58476c1..299c1d6 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -1031,13 +1031,10 @@ static void dw_mci_read_data_pio(struct dw_mci *host) struct mmc_data *data = host->data; int shift = host->data_shift; u32 status; - unsigned int nbytes = 0, len, old_len, count = 0; + unsigned int nbytes = 0, len; do { len = SDMMC_GET_FCNT(mci_readl(host, STATUS)) << shift; - if (count == 0) - old_len = len; - if (offset + len <= sg->length) { host->pull_data(host, (void *)(buf + offset), len); @@ -1082,7 +1079,6 @@ static void dw_mci_read_data_pio(struct dw_mci *host) tasklet_schedule(&host->tasklet); return; } - count++; } while (status & SDMMC_INT_RXDR); /*if the RXDR is ready read again*/ len = SDMMC_GET_FCNT(mci_readl(host, STATUS)); host->pio_offset = offset;