From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaehoon Chung Subject: Re: [PATCH] mmc: trivial: fix the compiling warning Date: Wed, 06 Nov 2013 12:20:46 +0900 Message-ID: <5279B58E.8040002@samsung.com> References: <1383653403-10049-1-git-send-email-ulf.hansson@linaro.org> <003201ceda2a$a1546f70$e3fd4e50$%jun@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mailout4.samsung.com ([203.254.224.34]:9108 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751050Ab3KFDUo (ORCPT ); Tue, 5 Nov 2013 22:20:44 -0500 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MVT00FVGNYJ3BA0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Wed, 06 Nov 2013 12:20:43 +0900 (KST) In-reply-to: <003201ceda2a$a1546f70$e3fd4e50$%jun@samsung.com> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Seungwon Jeon , 'Chris Ball' , 'Ulf Hansson' Cc: linux-mmc@vger.kernel.org I known this patch is already included into Ulf's patchset. mmc: core: Silence compiler warning in __mmc_switch Best regards, Jaehoon Chung On 11/05/2013 10:26 PM, Seungwon Jeon wrote: > Fixed the following warning. > > drivers/mmc/core/mmc_ops.c:484:11: warning: 'status' may be used > uninitialized in this function [-Wmaybe-uninitialized] > > Signed-off-by: Seungwon Jeon > --- > drivers/mmc/core/mmc_ops.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c > index aae8d8b..e5b5eeb 100644 > --- a/drivers/mmc/core/mmc_ops.c > +++ b/drivers/mmc/core/mmc_ops.c > @@ -414,7 +414,7 @@ int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value, > int err; > struct mmc_command cmd = {0}; > unsigned long timeout; > - u32 status; > + u32 status = 0; > bool ignore_crc = false; > > BUG_ON(!card); >