From patchwork Mon Nov 27 09:01:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurentiu Tudor X-Patchwork-Id: 10076131 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 62A676028E for ; Mon, 27 Nov 2017 09:02:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 53A8F28DAA for ; Mon, 27 Nov 2017 09:02:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46D2628DAD; Mon, 27 Nov 2017 09:02:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BADF428DAA for ; Mon, 27 Nov 2017 09:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gZgCQMPtiGd/SMCyhEcS1Poghm397VKBxHXyyU0mk+U=; b=MUM1Dxhq2rHcqi fRUs7FwewrcVwgyWRtrlRdkPkXM0lhYNxF3S/Si/I6V/UuEn8QncS6PlO3Y5GWXNHd+9yytXJ6pBn k71292o56iyIwpITo46vLNN5eO9vuBgTAmHuBr0lcdYfREbmy+/+yRExtCl36RQS9mj4OUSA+y7Hj g725bM4f4/I2z2ZQAe2WAdp0E6pTEafeA7PByo91KJnbJ3Ed3uJWtK5s250p0/7oMxFnRP2T57iA+ vmByTfEsP5p/0eP9amG+u9GJe0bq+2+3qsj5KRdCaN119YSyoKouSlswncdlPqQQ7RykBzkoAWQ4t K7nRFpbMElNa2zLgNLkw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eJFIt-0001rs-Cs; Mon, 27 Nov 2017 09:02:15 +0000 Received: from mail-co1nam03on0051.outbound.protection.outlook.com ([104.47.40.51] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eJFIl-0001pi-Rt for linux-arm-kernel@lists.infradead.org; Mon, 27 Nov 2017 09:02:13 +0000 Received: from CY4PR03CA0107.namprd03.prod.outlook.com (10.171.242.176) by BN3PR03MB2355.namprd03.prod.outlook.com (10.166.74.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Mon, 27 Nov 2017 09:01:42 +0000 Received: from BY2FFO11OLC009.protection.gbl (2a01:111:f400:7c0c::101) by CY4PR03CA0107.outlook.office365.com (2603:10b6:910:4d::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.260.4 via Frontend Transport; Mon, 27 Nov 2017 09:01:42 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11OLC009.mail.protection.outlook.com (10.1.15.0) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.218.12 via Frontend Transport; Mon, 27 Nov 2017 09:01:42 +0000 Received: from fsr-fed1964-102.ea.freescale.net (fsr-fed1964-102.ea.freescale.net [10.171.73.189]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vAR91bcD002906; Mon, 27 Nov 2017 02:01:37 -0700 From: To: , Subject: [PATCH] staging: fsl-mc: fix uninitialized variable use Date: Mon, 27 Nov 2017 11:01:34 +0200 Message-ID: <20171127090134.19125-1-laurentiu.tudor@nxp.com> X-Mailer: git-send-email 2.9.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131562469023225912; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(376002)(39860400002)(346002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(33646002)(47776003)(39060400002)(1076002)(86152003)(106466001)(54906003)(50466002)(4326008)(2876002)(48376002)(50986999)(81166006)(8676002)(7416002)(50226002)(53936002)(356003)(81156014)(2906002)(68736007)(305945005)(110136005)(8656006)(189998001)(97736004)(316002)(51416003)(16586007)(498600001)(8936002)(104016004)(77096006)(105606002)(85426001)(6666003)(5660300001)(86362001)(36756003)(6636002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2355; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC009; 1:AHv+TjbtslxutB1jIuApJZVpngfu4Du9CsuteAkwYtrbAyf0kM+g/KoYQVcmRF3/DS2hq1ZDIyYdgSjyemBw20toMCiEQnfax+/tvof50vRHCEDZV2/ZxvnKp1BZdjvf MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d08f88fc-530b-4321-b6da-08d535757a5b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4628075)(201703131517081)(2017052603258); SRVR:BN3PR03MB2355; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2355; 3:jaXDo2MbPJpgGL7T16xKLN+Hfx6HbJeOVH2VxNJUxEDZq/2WFyom5B5h04tL0DLubkbSpWFbRciKejKARcYNgdKSsabD9gGbjW5bBMJlM2MLc1yX4htZmYCaZZuIoBcAmwViyncU8VyA2sLZGc5a9omJZyQe/FTxjf0fX9pk+dPYXEhdODMqX9ZRXjsOs6MbEyFt/Wblq3mFZ5uR173q0gK1gUWX9y85ck+kMJ96dWzZRtHJffX0H/Qkh2AD2B3gB8KqfEux1hxOevfNxtlyS9CxLtKZFqXJkZMf++6qYDo2bfRYARD7OhY9fUH7kBK2/dvDPGC+wVXE25xl68OHrgUVgvJ01Tnwte5y0mhgvxo=; 25:sIus+9ydkFD04f7wRjyZhkDjcAkumpB8l2Bu0jnfkZKsy1ItqH2xKBRjMh4zFDzelTiVxmFexPZ5hljnZ0n5pgoP6S7Ye3Kp3FxQkQBGXJgLe2R9I5MEfcRH3yHsNdfLay2jLrsMJAd0WUBwMFgoJjnNUopuu+IdySe/inY1bXX3Yn23rLenYpfSRUNFcQiEIK/++nSUGF3xf3lKOOV93ozWi5fTPdcMAp5aYojeha6amjAdzMhnAJV/7i5nApijXm6PXXMlccGXAA2PpY8e1OOZVT1ycOdhfVtas7Sv1tcaDsXA3qMNCQQP+AwA7O7fS31jTYJRUsUA4xIt1D+26Q== X-MS-TrafficTypeDiagnostic: BN3PR03MB2355: X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2355; 31:wKKm3VXscJKqZ0Mj2v3t5M6FfX2Uhhjp70M5FcoM03t/8s2+4ca8hl1oD30K6T9ADjsiWv6x/gnywiWjcXXwmSeCup9qBYabd0AsG9o0JlKJYB1fLPQPcEJiLYetdeG7bjnCwtkLQmRFd25j2zZa+ukXmJbW55505mF2iJU8k/NlPx+9Skj0Lq2GSQX9jsHf+SvqflOcqtstCpDdEXjM4HLdbQHOakqoVu2UFztlpKo=; 4:hgIqpMdVFpPjkhSBaz8PA0FpuJ5ou2dU8qQgBPKygHJsi9eRll3mp+xyzvyk/exrgNvfFc1cN054gxjMAcxl24I2mEeZJy7lp5Pi43e7JiNau/8r8rao+sGbffcylZaLOOq1tZaO0DjtueoS6YcObCAJEdr2OyGLGOBZft/n5d8sm8q58Ea2oEzG9dytX7SelUbhsplVtQ3IwDa9YQUUZviKc8K+1EQrXpjwA574ofEgG+KpKoE1hBNpK8MMAA12bzpSaiBv4D9RBqOPnIzb+Iow5QNo76dl7N4S1IyJRnDHtGCDm6soS+rea6tyNEeV X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(3231022)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123563025)(20161123556025)(20161123561025)(20161123565025)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(201708071742011); SRVR:BN3PR03MB2355; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN3PR03MB2355; X-Forefront-PRVS: 0504F29D72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2355; 23:8TIS+aF5jH/zVKnSQfZM/Q/KV3qM6wSpjVeu2d+49?= =?us-ascii?Q?c252+MGxbDPKEC7KctfB+Shh75qFmzbZNSJAimSLfh5nE2+/IbPVazPHnd1P?= =?us-ascii?Q?OqfEM6REQ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hd2bncdH0BdbCDAMLq1JiBpezfj/H0jpJxbkBejCvpbX6MQOR/u/DHUEg2l7iOx5CR4D+M4iGZt5xEiAfzZeAxZYFAilkXMuGInaipdb1xNTWgimiqSVSYSFd117keBzrpAIuGNBPhe/vZWLwyO0wMBfHcNDgVyDjc9pMlQu SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2017 09:01:42.1041 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d08f88fc-530b-4321-b6da-08d535757a5b X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2355 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171127_010208_071942_00663FCC X-CRM114-Status: GOOD ( 11.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, stuyoder@gmail.com, roy.pledge@nxp.com, linux-kernel@vger.kernel.org, leoyang.li@nxp.com, bogdan.purcareata@nxp.com, linux-arm-kernel@lists.infradead.org, Laurentiu Tudor Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Laurentiu Tudor Fix this warning triggering on a powerpc build: warning: 'error' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Laurentiu Tudor --- drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c index f84bc14..f15bab3 100644 --- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c +++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c @@ -570,6 +570,7 @@ int fsl_mc_device_add(struct fsl_mc_obj_desc *obj_desc, mc_dev->dev.release = fsl_mc_device_release; mc_dev->dev.type = fsl_mc_get_device_type(obj_desc->type); if (!mc_dev->dev.type) { + error = -ENODEV; dev_err(parent_dev, "unknown device type %s\n", obj_desc->type); goto error_cleanup_dev; }