From patchwork Thu Jul 26 06:04:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akshu Agrawal X-Patchwork-Id: 10545239 Return-Path: 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 A011E112E for ; Thu, 26 Jul 2018 06:05:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 852512A7F0 for ; Thu, 26 Jul 2018 06:05:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74FC82A9E4; Thu, 26 Jul 2018 06:05:06 +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 AC8052A7F0 for ; Thu, 26 Jul 2018 06:05:05 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 193A4267766; Thu, 26 Jul 2018 08:05:04 +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 5B773267783; Thu, 26 Jul 2018 08:05:02 +0200 (CEST) Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-eopbgr690042.outbound.protection.outlook.com [40.107.69.42]) by alsa0.perex.cz (Postfix) with ESMTP id B6438267762 for ; Thu, 26 Jul 2018 08:04:59 +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=PG1ZZf8rLVqNhDnOOr1dDVU5ZkMonhDv17lSP5CNVPM=; b=tnsv6MrShRlOph17vBYLexheZm5dFTNb/yjUy6AuLjG1Yn1a7ZSeU6DUe4K36hZnTgTyZUADGR/fqGpZ0l3aWgIryKkXX4ora9X8UjRamZ/aLhsO7Xr4Jvj84LLZwXmXGnI0/olR50DK/Gxj2+BXxxK5atb9/yRpZT4jPNqcGgA= 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 MW2PR12MB2363.namprd12.prod.outlook.com (2603:10b6:907:8::10) 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 06:04:47 +0000 From: Akshu Agrawal To: Date: Thu, 26 Jul 2018 14:04:08 +0800 Message-Id: <1532585060-26060-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: MAXPR0101CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:d::13) To MW2PR12MB2363.namprd12.prod.outlook.com (2603:10b6:907:8::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f52bee72-d176-4b86-1f66-08d5f2bdb602 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:MW2PR12MB2363; X-Microsoft-Exchange-Diagnostics: 1; MW2PR12MB2363; 3:17Duc7+uN2yNpqkDz9P6VmOi6WY16/b0cu4Z0Y61F6qJbUgg6DU5RheB74s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l7qQHTURv5RMSGuUlWeICQTjRl/92MUOBCvh56f9/LeEYFDaTgla66wyOeB5AaiCq5tHOo/DPQo/yCsKVm4j2g0iOJXarsyUFKClY9WAlw9LgU9tJf7cjaChKQ4WBRXUsNfkyCG8uJLVOLvpxwjnmHGDdwNyj18mpLjdR0AdnjPvU9bN6xx75t1ViapFxJktTaAfcIt2cZmy67SZwn03ZCxAfsK1UNgrgRH/MHyaOeeIBl2Zlg8hgYcz5g8HoPCH0oErjodJpgseHPUnW9op4NFAgI7ncMS1e; 4:ZI9QPtOtvJw6URB469l8eDk+mmH7h1NguRwGDRjXgdYVZAWQeVKINAENGzjJTq+s8ESCj4A2VFr6XBszh8Esyxnt8fahk+gtAUsBGsJSAOd3kcmx2PGIdDNivytz1F+n0sRWp4qTilThEzZIjq57XpnDfH8zwnzgZGV5KTPORUd471tjqH1hw5hlYLxTsFVQ+H6wgr6rhitVhKX2aduNu/SeYe+Np2COKA3isIb0KB4Rw6XX07e6IHc0zEuuIuHzvvpwQOy3RY9vnPvRKxmrSQPT2KvHhd9QLspr20DmiaiYRdscH1Ya8ORTngfNUKFn 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)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:MW2PR12MB2363; BCL:0; PCL:0; RULEID:; SRVR:MW2PR12MB2363; X-Forefront-PRVS: 07459438AA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(366004)(346002)(376002)(136003)(199004)(189003)(8676002)(7736002)(50226002)(53416004)(26005)(109986005)(386003)(51416003)(7696005)(25786009)(5660300001)(52116002)(105586002)(16526019)(97736004)(3846002)(4326008)(39060400002)(6666003)(2906002)(6116002)(36756003)(6486002)(1671002)(81156014)(48376002)(478600001)(106356001)(53936002)(86362001)(72206003)(68736007)(54906003)(47776003)(66066001)(486006)(16586007)(44832011)(14444005)(8936002)(305945005)(476003)(2616005)(81166006)(316002)(956004)(50466002)(266003); DIR:OUT; SFP:1101; SCL:1; SRVR:MW2PR12MB2363; H:akshu-HP-EliteBook-745-G2.amd.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MW2PR12MB2363; 23:ye2B60ZoOoK2OPSoMY7OJzr0MViFB7Ja9YVc3Apug?= WKFw+15zXadQIDshbm29+CinuN60uVQvApktTCZ/W4lV7KGLVlcgynHE2jgEdvSrGhivgdSvSCiArKPVXfsZW9p0ff5Yu3dsoiAJe+OiKGLdMhS3viI4Njd2LDik+DDCVhx7VgAsC93Kh6/NxbFaA2sZtchLpKpWxKJfblbX/is4kNnMCFJNijet6pVSGyk4ehUFy4D4qNsx1hebPufSvsLS4XKvgqzzFilh8prXQmoGYhnDsBHkJB2sCiAH4WPOH9/m7cPb4yyVJi87jWUsaRNv1qSXZvRdd6Ns5vMR9poMh+8ACvze5tSsscRNKaIyZGoqWtbJK7d4ZI5L0xaoV7P4qLBnqpjQIaZUYk5Ixu0cZp5CiV4ByBhDzSKOXKftRHE9fotyEjGdbeXcTMsdzkcUDPw7ojb/96Whzd70hO7WVm4fwyjv7ezOu8rTJVnoew1BbEB+p/E+0g5y0/X9lg+VclV102apYp6s1k2XTE31pCQBA2RONajadIkOUwAKbUjIDRFiGnsW8aWn9JCjlzt8H8Va5Kt9iwdnAOrbGAnN1B3tXa2bWbRaxChkylRWxES1vAKTeaOD3qYaRIDjZF/IpoF5fOFXavig6Jih+X1dUAzwHHIScEeRNow738i52WHXncjUdwhF076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2MZfz/Dd0WYgg+d+8AP7bZzTO4Tx+dVa5ti9ci/L4pi9WLoJBj0zFj9ao2H8ZmeFoxtdOUf X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2018 06:04:47.7094 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f52bee72-d176-4b86-1f66-08d5f2bdb602 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR12MB2363 Cc: "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , Kuninori Morimoto , Liam Girdwood , open list , Takashi Iwai , Daniel Kurtz , Mark Brown , Wei Yongjun , "Mukunda, Vijendar" , Alex Deucher , akshu.agrawal@amd.com Subject: [alsa-devel] [PATCH v2] 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" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- v2: closing braces missing 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..8e3275a 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; }