From patchwork Tue Sep 28 08:41:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peppe CAVALLARO X-Patchwork-Id: 214202 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 o8S8fsxJ032461 for ; Tue, 28 Sep 2010 08:41:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759605Ab0I1Ilu (ORCPT ); Tue, 28 Sep 2010 04:41:50 -0400 Received: from eu1sys200aog103.obsmtp.com ([207.126.144.115]:38760 "EHLO eu1sys200aog103.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758878Ab0I1Ilu (ORCPT ); Tue, 28 Sep 2010 04:41:50 -0400 Received: from source ([164.129.1.35]) (using TLSv1) by eu1sys200aob103.postini.com ([207.126.147.11]) with SMTP ID DSNKTKGqTEiIEDb1haQYX+IU8GlA9sBbTXNb@postini.com; Tue, 28 Sep 2010 08:41:49 UTC Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4A5E397; Tue, 28 Sep 2010 08:41:48 +0000 (GMT) Received: from mail3.ctn.st.com (mail3.ctn.st.com [164.130.116.150]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6D1031C0D; Tue, 28 Sep 2010 08:41:44 +0000 (GMT) Received: from localhost ([164.130.129.16]) by mail3.ctn.st.com (MOS 3.8.7a) with ESMTP id DEI00558 (AUTH cavagiu); Tue, 28 Sep 2010 10:41:43 +0200 (CEST) From: Giuseppe CAVALLARO To: linux-mmc@vger.kernel.org Cc: w.sang@pengutronix.de, Giuseppe Cavallaro Subject: [PATCH (mmc-next) 2/3] mmc: fix a warning when compile the sdhci d.d. (V2) Date: Tue, 28 Sep 2010 10:41:28 +0200 Message-Id: <1285663289-20283-2-git-send-email-peppe.cavallaro@st.com> X-Mailer: git-send-email 1.5.5.6 In-Reply-To: <1285663289-20283-1-git-send-email-peppe.cavallaro@st.com> References: <1285663289-20283-1-git-send-email-peppe.cavallaro@st.com> 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.3 (demeter1.kernel.org [140.211.167.41]); Tue, 28 Sep 2010 08:41:55 +0000 (UTC) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 96c7f60..d3f924b 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1050,11 +1050,9 @@ out: static void sdhci_set_power(struct sdhci_host *host, unsigned short power) { - u8 pwr; + u8 pwr = 0; - if (power == (unsigned short)-1) - pwr = 0; - else { + if (power != (unsigned short)-1) { switch (1 << power) { case MMC_VDD_165_195: pwr = SDHCI_POWER_180;