From patchwork Wed Feb 23 22:29:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Ball X-Patchwork-Id: 585941 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 p1NMbPQP023519 for ; Wed, 23 Feb 2011 22:37:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756160Ab1BWWhi (ORCPT ); Wed, 23 Feb 2011 17:37:38 -0500 Received: from pullcord.laptop.org ([18.85.46.20]:44152 "EHLO pullcord.laptop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754504Ab1BWWhi (ORCPT ); Wed, 23 Feb 2011 17:37:38 -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 p1NMaP3u028322; Wed, 23 Feb 2011 17:36:25 -0500 Received: (from cjb@localhost) by pullcord.laptop.org (8.14.4/8.14.4/Submit) id p1NMaPUK028321; Wed, 23 Feb 2011 17:36:25 -0500 From: Chris Ball To: linux-mmc@vger.kernel.org Cc: Chris Ball , =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH 2/3] mmc: cb710: Remove set-but-unused variable. Date: Wed, 23 Feb 2011 17:29:12 -0500 Message-Id: <1298500153-28081-2-git-send-email-cjb@laptop.org> X-Mailer: git-send-email 1.7.0.1 In-Reply-To: <1298500153-28081-1-git-send-email-cjb@laptop.org> References: <1298500153-28081-1-git-send-email-cjb@laptop.org> 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]); Wed, 23 Feb 2011 22:37:39 +0000 (UTC) diff --git a/drivers/mmc/host/cb710-mmc.c b/drivers/mmc/host/cb710-mmc.c index 66b4ce5..280c03a 100644 --- a/drivers/mmc/host/cb710-mmc.c +++ b/drivers/mmc/host/cb710-mmc.c @@ -179,7 +179,6 @@ static int cb710_wait_for_event(struct cb710_slot *slot, u8 what) static int cb710_wait_while_busy(struct cb710_slot *slot, uint8_t mask) { unsigned limit = 500000; /* FIXME: real timeout */ - int err = 0; #ifdef CONFIG_CB710_DEBUG u32 e, x; @@ -190,7 +189,6 @@ static int cb710_wait_while_busy(struct cb710_slot *slot, uint8_t mask) if (!--limit) { cb710_dump_regs(cb710_slot_to_chip(slot), CB710_DUMP_REGS_MMC); - err = -ETIMEDOUT; break; } udelay(1);