Message ID | 1532584572-8362-1-git-send-email-akshu.agrawal@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D6568112E for <patchwork-alsa-devel@patchwork.kernel.org>; Thu, 26 Jul 2018 05:57:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA5332A968 for <patchwork-alsa-devel@patchwork.kernel.org>; Thu, 26 Jul 2018 05:57:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE3092A992; Thu, 26 Jul 2018 05:57:03 +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=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5144E2A968 for <patchwork-alsa-devel@patchwork.kernel.org>; Thu, 26 Jul 2018 05:57:02 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id DED85267762; Thu, 26 Jul 2018 07:56:55 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1A74C267766; Thu, 26 Jul 2018 07:56:52 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0052.outbound.protection.outlook.com [104.47.36.52]) by alsa0.perex.cz (Postfix) with ESMTP id BA5A626775C for <alsa-devel@alsa-project.org>; Thu, 26 Jul 2018 07:56:47 +0200 (CEST) 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 <akshu.agrawal@amd.com> To: 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 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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KUe23aEWNertr5gcBSUlma2rljYsCee7g1aIz6C5PPxFK+DDC5rS8enVYdAOsUzHYAw6QXY8fmZwJK0+ac17OmLbNZI6LRsONfu5CUHmDGjKEMHljfpFcJs6OSUlNmZ0M+Sp4TfKdMryckMhNPlWIwFdIZfKW3GxDUkGkEak7Fn6wHLSblaFYpZ0czJSiawGcSelCi7P/1jMOUmOihKXUGvALi7kBr3fDaPsd5inmF6sjQErHgftE6yD+YFpmsHtWoIAHT9e8Ko/FN1VjrG+6YfaKVHmJ5sHeiAYbg0ZED7RkpxOY0H96Sd95qpoN3F2ynJRnibx9sg/SSCPup4DqWkra8GASOyJUk; 4:S6sWRCMZoRB6WTt9yUtdGMKH48ZmuW/KQBn7gajTkzzTQ2R3ZSXOipoX+lUjicpURK6AFzJA93tEw5PGpc6npJ89cQzFG7LvH1HZpci9Tf26GrzdlQM+ds0RLf/86O7xAyAR8TpkJxkWy2PwemR0T3p8Crzw0Y+MzgW5IxjMG0ey6eCehq3Uk1PGIeReL9IannAVvBGa5IiBHSKAaUA53LV3jcHa6ATS22g4RuWEwc3W5j/zfTCxTF4dOQaeq3FWk/n1ZtBkzKF5f4xQx7+Yrtngo8BHwm9L9h6hn4pcChjDfbZxwiYhUzWGg95gW5T5 X-Microsoft-Antispam-PRVS: <MW2PR12MB23644CE490D214DED24401A8F82B0@MW2PR12MB2364.namprd12.prod.outlook.com> 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?= +jgWwqYo7vljno2g5Rz9eZVvil8cazbuTkS8jcXsj6tPDb/BMhxWHWB/xv3ql1asRPrxldZom43+O1TtiIpMN3QCVYr7M7WiK9s9Z5D6fnLNTiX2KqfMqWPcPqs/PhHu5JiWQEebWJXY0xqCK+Tshcb5DIJvzHk/keziDx6VaFdZ1S35aYP/Ap17cr8DH3qvnO5WLsAoVMceJqIjaePvFFtpPDiOmglXYg9mLKlv1E2ulyyX8+RrPVnv5ay4kK6793rTLX2PxTin6SiLtuwAchXQDeHXbvSn12AFVt10ezAERqyk9KR6ux7LoEW9U0BQhduNmk93G56FeJiViL6RLrIirfSY6r2pq8mlSEwb7Pam7PWdFyE2kCoY/6dV3x1FOY0f4FExTNWJJTqE5jQoRQTqJF1LNGVhAjhipIhIZeBSFGjhsB590/fk8j4b3q74FE9g3MhUFc6gI7zPgw1tqNbqZlXoHrzmAR/Ayezs5eUPhOpXdoBbdQQEZiCMc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ij4sEpY/NfqH7Ksbjt8r3chbrVZGIy3Yg6fMMwo= X-Microsoft-Exchange-Diagnostics: 1; MW2PR12MB2364; 6:ohp/quxnLvZjh2ROy/q7iH4HaphxkiazKaT7B8Iv2q46de01ugfBs7SKx0llVu65sWiA8UbcYqqqVr2AT3pOE8auIK8vLMcuOr+jjsPa2l8M1iAkdlosYeUU4g6tJK/WxBGpg4wdfVIogwScEIlH2PyhId40QrDpFmnhHMr7F6YI3AsflTB9Cf+jgUfkJBbX9Cwm/Ai9JcC8m0JiUTCwP3FhFW7QfXjsbEC9dUnf6bcobrl8kfhBnYbh3Oup9WK/FGr4gvqhWkKvtTtfXqQnZeKgVs1eBzZDM7YBfKRduEmUJ6m/UUzmXTAbXBtC0ZDxODAv/EfcpfW1wcP8dr7IfIKGoOPMw/2/6yoe/0G6ZSlU4KDzeIGWZnXaZ6gqzA1BAsxvF60vg+J/d5hnEo/aZkEeZiruRmjxqSvvSaqVvlFOAs/YYdBkne9+QebBc/ICcuu4fyP2jD7s7VSNX4ZO8Q==; 5:viak4by/v26Hv524EwFHBe0/paubeFLQUd/NmQVmxor+S960ObTxY58voK1RPKZsN6gHCtn+W6vrDxGLzBLxJr125pB9QKap6k1m9p8WC2nGREzicdC44Vh9CNViVWwaol/7q6eeH79ma8ISgbDHMH6mdDeX8q3J3QJmOzwPCXQ=; 7:H48Op0NPL64/xsZqJuSlvv9dG90MMogzJHed9G1VxDT59FnAuwgmDGSHg+ccOTCI4WTAJz/DVi9ghxmKhUQAoIb+RcPB/zDO3RnLxe7Zuh/QshAYYssKw6KIKhyOzmddBkya9UnEzgxkreCbQ2muR6UPWzClPBDIuDEMGrdqMRJznb1sshHj5sE0P4gdNV72Oy6z0w+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 Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." <alsa-devel@alsa-project.org>, Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>, Liam Girdwood <lgirdwood@gmail.com>, open list <linux-kernel@vger.kernel.org>, Takashi Iwai <tiwai@suse.com>, Daniel Kurtz <djkurtz@chromium.org>, Mark Brown <broonie@kernel.org>, Wei Yongjun <weiyongjun1@huawei.com>, "Mukunda, Vijendar" <Vijendar.Mukunda@amd.com>, Alex Deucher <alexander.deucher@amd.com>, akshu.agrawal@amd.com Subject: [alsa-devel] [PATCH] ASoC: AMD: Fix build warning X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
ASoC: AMD: Fix build warning
|
expand
|
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; }
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 <akshu.agrawal@amd.com> --- sound/soc/amd/acp-da7219-max98357a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)