From patchwork Sat Jun 11 12:07:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 100008 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-wy0-f184.google.com (mail-wy0-f184.google.com [74.125.82.184]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 4E92AB7075 for ; Sat, 11 Jun 2011 22:07:29 +1000 (EST) Received: by wyb35 with SMTP id 35sf7308683wyb.11 for ; Sat, 11 Jun 2011 05:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:x-beenthere:received-spf:from:to:cc:subject :date:message-id:x-mailer:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; bh=31yV/gLd+fr8mYNWBDERq24hDslObwMFk6+/N8qvfrQ=; b=xq6O8YVJmbX7wPoTsaNhOBvio1tG06KVwbB5vlNr/krF2/YREq+XwtMGa3dYSfkq8V cvNOmw4fPINliUnjBV4ydNqFE7Fve/G+gGQdanV1g8d/LnVTzqLSaz/CiK8jJNaLLW9K u5nuPZq3V4ed4HCtshq1dRlngqU8aJPFnwH94= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:from:to:cc:subject:date:message-id :x-mailer:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type :content-transfer-encoding; b=035Omt9mKc5CDZaQC5qO1qL8mrqDcY15QwlUeGpJAQ2K2gZf+zC9qMSS58kLa89ikG Q4SZ8Jcdlvn2lZsCsZHhbR3SXarrCSkUV2SRRl155FyrWEGUOMjAITCY/uu7G3Ive38P K4pW9qW+a6A4tmDVEiJyRFgDz9oRqLm5F4iQo= Received: by 10.216.221.232 with SMTP id r82mr1339251wep.3.1307794044265; Sat, 11 Jun 2011 05:07:24 -0700 (PDT) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.14.14.136 with SMTP id d8ls329820eed.6.gmail; Sat, 11 Jun 2011 05:07:23 -0700 (PDT) Received: by 10.14.11.78 with SMTP id 54mr924712eew.6.1307794043324; Sat, 11 Jun 2011 05:07:23 -0700 (PDT) Received: by 10.14.11.78 with SMTP id 54mr924711eew.6.1307794043309; Sat, 11 Jun 2011 05:07:23 -0700 (PDT) Received: from mengele.ibawizard.net (ibawizard.net. [82.208.49.253]) by gmr-mx.google.com with ESMTP id b4si1238336fab.0.2011.06.11.05.07.23; Sat, 11 Jun 2011 05:07:23 -0700 (PDT) Received-SPF: neutral (google.com: 82.208.49.253 is neither permitted nor denied by best guess record for domain of ynezz@true.cz) client-ip=82.208.49.253; Received: from ntbk.lan (localhost [127.0.0.1]) by mengele.ibawizard.net (Postfix) with ESMTP id E27A21D36074; Sat, 11 Jun 2011 14:07:19 +0200 (CEST) From: =?UTF-8?q?Petr=20=C5=A0tetiar?= To: rtc-linux@googlegroups.com Cc: =?UTF-8?q?Petr=20=C5=A0tetiar?= , Alessandro Zummo Subject: [rtc-linux] [PATCH] rtc: ep93xx: Fix compiler warning in ep93xx_rtc_probe Date: Sat, 11 Jun 2011 14:07:25 +0200 Message-Id: <1307794045-27845-1-git-send-email-ynezz@true.cz> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-Original-Sender: ynezz@true.cz X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 82.208.49.253 is neither permitted nor denied by best guess record for domain of ynezz@true.cz) smtp.mail=ynezz@true.cz Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , Commit 92d921c5def introduced following compiler warning: drivers/rtc/rtc-ep93xx.c: In function 'ep93xx_rtc_probe': include/linux/platform_device.h:145:17: warning: 'rtc' may be used uninitialized in this function drivers/rtc/rtc-ep93xx.c:133:21: note: 'rtc' was declared here Cc: Alessandro Zummo Cc: rtc-linux@googlegroups.com Signed-off-by: Petr Štetiar --- drivers/rtc/rtc-ep93xx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/rtc-ep93xx.c b/drivers/rtc/rtc-ep93xx.c index 335551d..50bd69f 100644 --- a/drivers/rtc/rtc-ep93xx.c +++ b/drivers/rtc/rtc-ep93xx.c @@ -130,7 +130,7 @@ static int __init ep93xx_rtc_probe(struct platform_device *pdev) { struct ep93xx_rtc *ep93xx_rtc; struct resource *res; - struct rtc_device *rtc; + struct rtc_device *rtc = NULL; int err; ep93xx_rtc = devm_kzalloc(&pdev->dev, sizeof(*ep93xx_rtc), GFP_KERNEL);