From patchwork Tue Nov 5 13:26:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 3141581 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6C0439F432 for ; Tue, 5 Nov 2013 13:26:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4E44620274 for ; Tue, 5 Nov 2013 13:26:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B7570200DE for ; Tue, 5 Nov 2013 13:26:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754857Ab3KEN03 (ORCPT ); Tue, 5 Nov 2013 08:26:29 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:47415 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754632Ab3KEN02 (ORCPT ); Tue, 5 Nov 2013 08:26:28 -0500 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MVS004Y1LC3M520@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Tue, 05 Nov 2013 22:26:27 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 59.22.08406.302F8725; Tue, 05 Nov 2013 22:26:27 +0900 (KST) X-AuditID: cbfee68e-b7f416d0000020d6-b3-5278f203c834 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id CF.CF.08134.202F8725; Tue, 05 Nov 2013 22:26:27 +0900 (KST) Received: from DOTGIHJUN01 ([12.23.118.161]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MVS00FI9LC22K70@mmp1.samsung.com>; Tue, 05 Nov 2013 22:26:26 +0900 (KST) From: Seungwon Jeon To: 'Chris Ball' , 'Ulf Hansson' Cc: linux-mmc@vger.kernel.org References: <1383653403-10049-1-git-send-email-ulf.hansson@linaro.org> In-reply-to: <1383653403-10049-1-git-send-email-ulf.hansson@linaro.org> Subject: [PATCH] mmc: trivial: fix the compiling warning Date: Tue, 05 Nov 2013 22:26:26 +0900 Message-id: <003201ceda2a$a1546f70$e3fd4e50$%jun@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac7aH/uUm1J6MxFOSyaXb4Fx/nx/rAABnFmg Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAIsWRmVeSWpSXmKPExsVy+t8zQ13mTxVBBkemcVlsf72RzeLI/35G i+Nrwx2YPQ5dWcvocefaHjaPz5vkApijuGxSUnMyy1KL9O0SuDJWz13DWPCAteLF13NMDYx3 WboYOTkkBEwkvh7bzghhi0lcuLeerYuRi0NIYBmjxJr1u1hhivp+z4dKLGKUWLf5GjOE84dR 4k/7fmaQKjYBLYm/b96A2SICnhLr115hArGZBWQlLu6/CrZCSMBN4knPEjYQm1PAXeLV4jtg G4QFLCT2L/gPVs8ioCrx6c9BsDm8ArYSiz4vgrIFJX5Mvgd0NgfQTHWJKVNyIcbLS2xe85YZ JCwBFH70VxfEFBEwkvjblwlRISKx78U7RpCLJQR2sUscv3qTFWKTgMS3yYdYIFplJTYdYIZ4 V1Li4IobLBMYJWYh2TsLYe8sJHtnIdmwgJFlFaNoakFyQXFSepGRXnFibnFpXrpecn7uJkZI 7PXtY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3Vc9a635fYe+wLM2crY9MmZ5Xq KU+32r561BczbaPDlmlvHm9SePyPxfnE9yj39wV705oyJUO87aqqQr6Kf1fRlrdlZI1hya7O VdmjxFKckWioxVxUnAgAdss9ejADAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);