From patchwork Tue Jun 23 08:37:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamalesh Babulal X-Patchwork-Id: 487531 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B24D9140082 for ; Tue, 23 Jun 2015 18:38:45 +1000 (AEST) Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 711701A0F74 for ; Tue, 23 Jun 2015 18:38:45 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from e23smtp04.au.ibm.com (e23smtp04.au.ibm.com [202.81.31.146]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 27D261A001E for ; Tue, 23 Jun 2015 18:38:42 +1000 (AEST) Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 23 Jun 2015 18:38:41 +1000 Received: from d23dlp01.au.ibm.com (202.81.31.203) by e23smtp04.au.ibm.com (202.81.31.210) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 23 Jun 2015 18:38:39 +1000 X-Helo: d23dlp01.au.ibm.com X-MailFrom: kamalesh@linux.vnet.ibm.com X-RcptTo: skiboot@lists.ozlabs.org Received: from d23relay06.au.ibm.com (d23relay06.au.ibm.com [9.185.63.219]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id 238F32CE804E for ; Tue, 23 Jun 2015 18:38:39 +1000 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay06.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t5N8cUf261866086 for ; Tue, 23 Jun 2015 18:38:38 +1000 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t5N8c61V030233 for ; Tue, 23 Jun 2015 18:38:06 +1000 Received: from Kepler.in.ibm.com ([9.124.158.158]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t5N8btOt029336; Tue, 23 Jun 2015 18:38:05 +1000 From: Kamalesh Babulal To: skiboot@lists.ozlabs.org Date: Tue, 23 Jun 2015 14:07:31 +0530 Message-Id: <44d42c586eb571dc57a8393b39fcf8fe30df517c.1435048541.git.kamalesh@linux.vnet.ibm.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: References: In-Reply-To: References: X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15062308-0013-0000-0000-00000173B39D Subject: [Skiboot] [PATCH 1/8] p7ioc_err_inject_io32() - Fix uninitialized variable warning X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Fix uninitialized variable warning in p7ioc_err_inject_io32(). Fixes Coverity defect #97880 Signed-off-by: Kamalesh Babulal Reviewed-by: Gavin Shan --- hw/p7ioc-phb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/p7ioc-phb.c b/hw/p7ioc-phb.c index 89592c4..d282363 100644 --- a/hw/p7ioc-phb.c +++ b/hw/p7ioc-phb.c @@ -1408,6 +1408,7 @@ static int64_t p7ioc_err_inject_io32(struct p7ioc_phb *p, uint32_t pe_no, uint64_t ctrl = PHB_PAPR_ERR_INJ_CTL_OUTB; int32_t index; + a = 0x0ull; addr = 0x0ull; prefer = 0x0ull; for (index = 0; index < 128; index++) {