Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp74335imm; Wed, 25 Jul 2018 22:58:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe2HsBf144DOsAQ0q9yhtXM2mdNsVqsdOk6aVE6iq5iSD2yj7UalLsnCp2um8Xx8S/Zv5Jm X-Received: by 2002:a62:8b0f:: with SMTP id j15-v6mr692083pfe.33.1532584681521; Wed, 25 Jul 2018 22:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532584681; cv=none; d=google.com; s=arc-20160816; b=Ch/NRsQc7r4feGrU0kf0RmCf3X8df9UveJW2zuBjWADUsbHploSCXe2EF3DItIEv+l M6wmSHXjxmtYzNE+0gIj4N9VtpgeTZpapJcyUGkb1REFYUsIDzNVwe0+hlowpQhbmnVM l3dIW2xEge7Kc6r34TsA28wkyhozI8pcMoeU+rkCLf7YmgwUz8TtHFdhF9JiI0CD9HYy 6VMpHfJ6JXdtHNBqK0w2i/UnEl8Y/MDfHscg84YKZ8pqrRGnIdQ3sHfAemUa9fy7aRPg SUq4aOnF+M6FaaMk2ZOmuQ477cv385sbI3YU4JMF4ScxsaI2VrS0ID0GCRc0SDlVY8Lr gbwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:from :dkim-signature:arc-authentication-results; bh=yKh65jFcZBShhQjcK7FtLih+9xUPHwqVQtxEhgYJXK0=; b=Q/B2B4PPxGCmp8KerFlWvK6DBEZWHwHk3wI/fR1GVUJ2r4jUuD6VZePxRgHtqn+WdR NU10IW7VayItL8ntrE5rTpK3COndlupQ1I36VZuTZRH66hBzxp+hQdQ+xmYlr+nUQ4Ja qQX9epXR3tjKWNG10BIrumXFvVtD3j4CQG7lkRf2SACPTSPKPhisQf9j3cHwwt6jd2O9 wq815Flf5HgJXacowcxAkCz5GdPzwBhgbI1JeS8UY5bkjYxCcezGc2Y8LEwzconsuKK8 keAROz7tDz4JpypPG3HfrGZTBpoGZLBpkufD74tS/vRUn5rD28yPZ8DDEPYOBWVpgaBl Z26A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=xd876KZw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12-v6si510982pfh.346.2018.07.25.22.57.46; Wed, 25 Jul 2018 22:58:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=xd876KZw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726600AbeGZHMA (ORCPT + 99 others); Thu, 26 Jul 2018 03:12:00 -0400 Received: from mail-sn1nam02on0056.outbound.protection.outlook.com ([104.47.36.56]:43872 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725955AbeGZHL7 (ORCPT ); Thu, 26 Jul 2018 03:11:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yKh65jFcZBShhQjcK7FtLih+9xUPHwqVQtxEhgYJXK0=; b=xd876KZwz9camkPkqQXz5wu240xskGldYrBiHxxrffFb07QU3NUiU7iAPe3vKyibLtZvNHJa42ru68DxNXs5nOrHpjqBf93dq4Bjb7hEVwuHlNmot+0WZt8w1V/rklJV5CEbIYxLUh+w8sYwMbkvG36wOVsVWzgDzDe8YnKbQOg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Akshu.Agrawal@amd.com; Received: from akshu-HP-EliteBook-745-G2.amd.com (202.56.249.162) by MW2PR12MB2364.namprd12.prod.outlook.com (2603:10b6:907:8::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.21; Thu, 26 Jul 2018 05:56:35 +0000 From: Akshu Agrawal Cc: akshu.agrawal@amd.com, Alexander.Deucher@amd.com, Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Daniel Kurtz , "Mukunda, Vijendar" , Alex Deucher , Kuninori Morimoto , Wei Yongjun , alsa-devel@alsa-project.org (moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM...), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] ASoC: AMD: Fix build warning Date: Thu, 26 Jul 2018 13:55:48 +0800 Message-Id: <1532584572-8362-1-git-send-email-akshu.agrawal@amd.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.56.249.162] X-ClientProxiedBy: MA1PR0101CA0061.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:20::23) To MW2PR12MB2364.namprd12.prod.outlook.com (2603:10b6:907:8::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 81473155-0123-49d9-e5c8-08d5f2bc90cd X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:MW2PR12MB2364; X-Microsoft-Exchange-Diagnostics: 1;MW2PR12MB2364;3:mKBXrePOvlFwP8Vvi8JmQQVi5xIaYciVsmT+ztOPDGffag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dAOsUzHYAw6QXY8fmZwJK0+ac17OmLbNZI6LRsONfu5CUHmDGjKEMHljfpFcJs6OSUlNmZ0M+Sp4TfKdMryckMhNPlWIwFdIZfKW3GxDUkGkEak7Fn6wHLSblaFYpZ0czJSiawGcSelCi7P/1jMOUmOihKXUGvALi7kBr3fDaPsd5inmF6sjQErHgftE6yD+YFpmsHtWoIAHT9e8Ko/FN1VjrG+6YfaKVHmJ5sHeiAYbg0ZED7RkpxOY0H96Sd95qpoN3F2ynJRnibx9sg/SSCPup4DqWkra8GASOyJUk;4:S6sWRCMZoRB6WTt9yUtdGMKH48ZmuW/KQBn7gajTkzzTQ2R3ZSXOipoX+lUjicpURK6AFzJA93tEw5PGpc6npJ89cQzFG7LvH1HZpci9Tf26GrzdlQM+ds0RLf/86O7xAyAR8TpkJxkWy2PwemR0T3p8Crzw0Y+MzgW5IxjMG0ey6eCehq3Uk1PGIeReL9IannAVvBGa5IiBHSKAaUA53LV3jcHa6ATS22g4RuWEwc3W5j/zfTCxTF4dOQaeq3FWk/n1ZtBkzKF5f4xQx7+Yrtngo8BHwm9L9h6hn4pcChjDfbZxwiYhUzWGg95gW5T5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:MW2PR12MB2364;BCL:0;PCL:0;RULEID:;SRVR:MW2PR12MB2364; X-Forefront-PRVS: 07459438AA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(346002)(396003)(376002)(136003)(39860400002)(189003)(199004)(8676002)(3846002)(81156014)(316002)(81166006)(6116002)(68736007)(54906003)(16586007)(478600001)(5660300001)(6666003)(476003)(305945005)(97736004)(8936002)(53936002)(50226002)(16526019)(14444005)(47776003)(7696005)(44832011)(53416004)(50466002)(25786009)(2906002)(39060400002)(26005)(956004)(6486002)(106356001)(66066001)(1857600001)(2616005)(109986005)(36756003)(86362001)(52116002)(51416003)(7736002)(72206003)(486006)(1671002)(48376002)(386003)(105586002)(4326008)(266003);DIR:OUT;SFP:1101;SCL:1;SRVR:MW2PR12MB2364;H:akshu-HP-EliteBook-745-G2.amd.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;MW2PR12MB2364;23:ejoTGbv7793yGv0SnOEyUq21Y3CAsrNLN7Fk1X5Rx?= =?us-ascii?Q?+jgWwqYo7vljno2g5Rz9eZVvil8cazbuTkS8jcXsj6tPDb/BMhxWHWB/xv3q?= =?us-ascii?Q?l1asRPrxldZom43+O1TtiIpMN3QCVYr7M7WiK9s9Z5D6fnLNTiX2KqfMqWPc?= =?us-ascii?Q?Pqs/PhHu5JiWQEebWJXY0xqCK+Tshcb5DIJvzHk/keziDx6VaFdZ1S35aYP/?= =?us-ascii?Q?Ap17cr8DH3qvnO5WLsAoVMceJqIjaePvFFtpPDiOmglXYg9mLKlv1E2ulyyX?= =?us-ascii?Q?8+RrPVnv5ay4kK6793rTLX2PxTin6SiLtuwAchXQDeHXbvSn12AFVt10ezAE?= =?us-ascii?Q?Rqyk9KR6ux7LoEW9U0BQhduNmk93G56FeJiViL6RLrIirfSY6r2pq8mlSEwb?= =?us-ascii?Q?7Pam7PWdFyE2kCoY/6dV3x1FOY0f4FExTNWJJTqE5jQoRQTqJF1LNGVhAjhi?= =?us-ascii?Q?pIhIZeBSFGjhsB590/fk8j4b3q74FE9g3MhUFc6gI7zPgw1tqNbqZlXoHrzm?= =?us-ascii?Q?AR/Ayezs5eUPhO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MGrdqMRJznb1sshHj5sE0P4gdNV72Oy6z0w+w03Cqrgek3Pfqzdm5luqKnARxdGiV5rlGREtCMuNNaouasjiQKbQdCWDN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MW2PR12MB2364;20:8dtGewBimPVNQBFilWQUPfP44fB6u9GjuJvBZNbs9dPcWIiXIvE5f4QmDnTOQ/GOgD1T+3Fw//BzGN10LV62h6mGvslWWhHToBbni9UDz1aN5nwYTNu9/ZSCEzRwAxfSNescWvI7IQ5l4z90IQz8S/jr5Br3xzw6R5PLcrS8q5QvI9oRbtiuSyRJm6jfIu6xjW1ygokERNmbMNE9R5ALuxs79TcU0SgY2b5i0uIYteTG7AgWBVC8HnmEFr/2Z9D3 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2018 05:56:35.8104 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 81473155-0123-49d9-e5c8-08d5f2bc90cd X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR12MB2364 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes sound/soc/amd/acp-da7219-max98357a.c: In function 'cz_probe': sound/soc/amd/acp-da7219-max98357a.c:367:3: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] dev_err(&pdev->dev, "Failed to register regulator: %d\n", ret); Signed-off-by: Akshu Agrawal --- sound/soc/amd/acp-da7219-max98357a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index cd3cf6e..48c1d94 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -365,7 +365,7 @@ static int cz_probe(struct platform_device *pdev) &acp_da7219_cfg); if (IS_ERR(rdev)) { dev_err(&pdev->dev, "Failed to register regulator: %d\n", - ret); + (int)PTR_ERR(rdev); return -EINVAL; } -- 1.9.1