Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp264620pxb; Wed, 3 Nov 2021 03:57:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqH2aP50AyUtwVpq7ZA7CCdKfODi1t2e1Lq0K8a8y2+NqJnbnf9hOxm+CcqMwqfpnfyp1F X-Received: by 2002:a17:906:5d0b:: with SMTP id g11mr24480623ejt.381.1635937061950; Wed, 03 Nov 2021 03:57:41 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si3714767edb.152.2021.11.03.03.57.19; Wed, 03 Nov 2021 03:57:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=gDku0v9D; dkim=neutral (body hash did not verify) header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="s6+R4/Dk"; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231491AbhKCKyw (ORCPT + 99 others); Wed, 3 Nov 2021 06:54:52 -0400 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:6672 "EHLO mx0b-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230232AbhKCKyv (ORCPT ); Wed, 3 Nov 2021 06:54:51 -0400 Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1A3AMCIx010685; Wed, 3 Nov 2021 10:46:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : content-transfer-encoding : in-reply-to : mime-version; s=corp-2021-07-09; bh=umhmtnqEgrXxXuPsIAXxb+H6pd34OKuiybvfoXU2ayI=; b=gDku0v9DbVCSJN2PRu3RWnAtWzOjNh6g8x37V+MdrOxlVO2LwTZdTLHfx+kdSm1EvcQV 1BLa9zMJEr+73K9R9JUyv8qNCAKMCGttzPQqb/Q7wbxGRcbEGALdSkCIi+oVbQO8qf9t QItL63+Q5F6nUzmX9vjSXhCv85Gk/pkIR0f+2z/P7CbPaMeHbGN0gZOXLzTw+bouelbC LB8zK52sYo1iFUJgFUeKW2BkcXuwD2p8GecgDN7DzahI2OSQbMTD3tWghdG65VJB5xzI KUn84ss9PmS18sYTygtIkr1bi1sYqntv+oXOxt0YHL24NOWxGcCUC8EPg1EW0oiRSehJ MA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3c3n8p111c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 03 Nov 2021 10:46:26 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1A3Ajem4041121; Wed, 3 Nov 2021 10:46:26 GMT Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam08lp2173.outbound.protection.outlook.com [104.47.73.173]) by aserp3030.oracle.com with ESMTP id 3c3pfxedw1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 03 Nov 2021 10:46:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZlI/uctvF/OXYOgYzDqQhBW7Aem1T1rrKKPgW4AqF4SiezlfLgInyQLVXmvepMNFvYwSs3Q9zbj/NpoMmxHm/y1NnfX4hJevsB26tj3Kvpc/HQGbwfQjKq2ye1jzHorc73PMMbZRoDkR1cNCD6uf9cNChiX2a6hdn7DSYjIfcZ+0sdkIBJxpu2TvidR2GZk/PCwknODeMa4Yi9LLF/fRWkFtT9ZQbtJW1HRe9XNKof5M260v6AiLk9L0JHBZaZ6B1IYYcK2RG+EaQ9L9e7Wx83b3z505sSf+C1aVzg6HOx7JUrRaba+ZAGiYA3W8ujKLLuksmliX5dMsoZkcGvb8Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UK3n/czdAlZNl832P6r3sW3bP6EOtHoz+MgwAK/Tmvg=; b=h84ZuXgIDJCItT9M8uuEMK/oTvATyM5yoE/b2+MAeVw7JMwJNVIcRuIZvk9WFbP71vVwenN5TOTsvRIBLtYj7lTDPOOqXkNOdbzjzpXAzA1KJxTIANxsqXJZUKfiUOB5c9TlryyNc8VkbtpB2HaE8U1LMYOMo+CpDVM2k3h+g1w+7bcLR8sl3IDVSxdy7J59Ukh+z9FMKZqdymBOdJZpmiArpJ84GgFcdKMpsSxTuL2o0709NO5xYnq2PdyUF9Y4bSU2K5MGUq57IKlbxczCBEB5T1+K3PVq3whFCnzurDrHUg/iCm2VbLRj1elWGsQGJwlN8/3HWDtBFZjumVmWiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UK3n/czdAlZNl832P6r3sW3bP6EOtHoz+MgwAK/Tmvg=; b=s6+R4/DkkehKSiyc5R8w8jC4RROKw132vaeqvp4qKbg0moDz0+y3gcfnWHJU9fZS1tAa5SGvukrUG15X/pca/axY60ZM3i5LugdCflikpca0iuIGcSAUDE8p5Oo3/Gv/Y/nkQIzIC+pQEHokgmDsym1IsR1LD1dhMy82kwrSl78= Authentication-Results: wanadoo.fr; dkim=none (message not signed) header.d=none;wanadoo.fr; dmarc=none action=none header.from=oracle.com; Received: from MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) by MWHPR10MB1824.namprd10.prod.outlook.com (2603:10b6:300:10a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15; Wed, 3 Nov 2021 10:46:23 +0000 Received: from MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::d409:11b5:5eb2:6be9]) by MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::d409:11b5:5eb2:6be9%5]) with mapi id 15.20.4649.020; Wed, 3 Nov 2021 10:46:23 +0000 Date: Wed, 3 Nov 2021 13:46:05 +0300 From: Dan Carpenter To: Christophe JAILLET Cc: Srinivas Kandagatla , lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, yang.lee@linux.alibaba.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] ASoC: codecs: Fix WCD_MBHC_HPH_PA_EN usage Message-ID: <20211103104605.GN2794@kadam> References: <988948f7f266aa00698704687537335b7e6a67b2.1634455711.git.christophe.jaillet@wanadoo.fr> <3ff34912-19e6-4d52-e9da-0e78ceb1d2ff@linaro.org> Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-ClientProxiedBy: JNXP275CA0012.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:19::24) To MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) MIME-Version: 1.0 Received: from kadam (62.8.83.22) by JNXP275CA0012.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:19::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.17 via Frontend Transport; Wed, 3 Nov 2021 10:46:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 820637b8-17ae-462d-62df-08d99eb72da9 X-MS-TrafficTypeDiagnostic: MWHPR10MB1824: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Wu8l049prz5EiLf7O8ziG4utGsilmKHgOATq5ZTtQYlnw9HLZyAjd3ZXX2R+NeEk/Lq/Hyj12MMuwtH9otGF4lRhh5bEfjztfBMHFiL/8Zn3JGzWG0EzAL9cNPZKuo1Hi4CV9kr/RIPf18m6pXa04fI6uiffTe9LK8V3zSXz0wvneTpOyFOFidTRg1SERuR/SMTAkaJ0GU+zv/tSvgpix1Diwkkdrc9D5BbUruSHIASGZFdglL5BIENvUzGlD1sRi2bawlXDsvpgxnNVL54S7JpQl6SRQUXnmt33D2dhsY8Cwc3pVftFi4DDFOpdcdv4rOIH2YAL6wMZCRF6kZtafbXVFt3uMUXPU9LrG6TkcDJGu+vePfzXVqlTtWpLCJRNGgaNNR3nGNLAz1V0daViqtWPFQa5nEfEI32rNa8nn113ygKjo8D1e4BPUD7HQv9TYKBJ3YkHcQ8aMxrTjypiDnp41rCT9p+STqLXBO5zK8N2Ej1YF61t3EpdDijsg0+CG86+3dWDpdEh5+btuySRvHh5orSGqT2wlIwtKeMeFReGAq50BTodmIe8ce3MkPbL7FFxiAKQ1y/KnNGoGgNMG5mjf2a0p9w8qVRg1JJI9vmnxeE8DnMdkVF2VzEKQIo/BbY5qq1PR79ng6OQnSADDb2l38n4qHh9nBgkDHcujDGwLMPnhD/wwfEeJCZ+6Re4rEajvgpqDifMUMPSnrsFEQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2365.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(26005)(508600001)(9686003)(956004)(33716001)(186003)(83380400001)(316002)(38350700002)(9576002)(4326008)(5660300002)(55016002)(4744005)(8936002)(38100700002)(66946007)(86362001)(7416002)(66556008)(1076003)(66574015)(2906002)(66476007)(33656002)(6666004)(53546011)(52116002)(6916009)(44832011)(6496006)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?Q9yoWAN1/er9fVFuMjVXYM8S5o0zwBlIPtsqsOX09KnIETVaDTrvDmUyva?= =?iso-8859-1?Q?ATbIC13kR4KKzBdueNtQZjVolzV9CCrU59ao9XBtKfN13HgUuYUOxcI9Fe?= =?iso-8859-1?Q?RH7bMT9pO+CrfQj1VY3Zeh/LrxFyeMncBADuNBQQMVTxKFTNWAIBC4a2h8?= =?iso-8859-1?Q?sHp23w09R/kW1IIavuJZGkJjSydbyzrzhabshzwxkQpAPjx139k2L1VIuW?= =?iso-8859-1?Q?tX1vBJC1YtyjXCQeRBpW2YSXgRjMtiP05+Bh6VgJ07vE/n8/C5Ntdu0yw2?= =?iso-8859-1?Q?1S7YIzuyV6vbELbGxiuUYoSltm5Fh1//owq+biZQ/recZy662UM6MnrfV5?= =?iso-8859-1?Q?Il01KHV03xST/sIhThKVxQTHC3pu3XAgF0EnuagKd+yXG+5dWuga4KMcSA?= =?iso-8859-1?Q?/UG88ubHkLSbJ4c66crSmzRVUPyMwt3qa1WGhcwWz+VShgHe0nDnZM53qO?= =?iso-8859-1?Q?kUTwA3AIQjr6g9DHWtjTCRHpwtay3D6QZZMsiwvahxog2rF3Gx88g+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x3YS4PWoJUuV7aF1S2qKSZz1MwthVQubM/2Vafw2gbhOWdQ8?= =?iso-8859-1?Q?HutLLh1UvvaUCWtuESy74UgW+fz3whYw0xAEZfVgF/uf88TTpXg2PhOu2i?= =?iso-8859-1?Q?zeZsfdkeTfwLyMLTNvoeGgYLTlkwveSeXrx0YQGRUIvDL41T2y2C2c//9k?= =?iso-8859-1?Q?1Mvg5yAU5sOn49emZ+4/w5qCVMByLc7o50HqwpsCCNYAT2vjC1hJi9+kLP?= =?iso-8859-1?Q?Usg5iGk/22oP3Ju7uQyJduFiVh5ZkJbhuxcl9+TRlSnm9x0vNQwHH5iZVQ?= =?iso-8859-1?Q?S9UvLTnmfvgJ2xts6BG1U9xZj1/5Lph9GHU+K4ObchgxzRVJftv1eXejLh?= =?iso-8859-1?Q?rchw=3D=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 820637b8-17ae-462d-62df-08d99eb72da9 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2021 10:46:23.3244 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gG19bG5/nVOLQTJEFR5uI5IDwvyOOzy+V4ZGYg3Hh3k4zysJumPdD2/cpcRtNNOnH/dkiXRgt1cfqauCtds7aXkqX+soqUUI5AoKlu1Jttk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR10MB1824 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10156 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 suspectscore=0 malwarescore=0 bulkscore=0 spamscore=0 adultscore=0 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111030061 X-Proofpoint-ORIG-GUID: 4aIo4VcmqMhqApv8TORVDSrIG96forhw X-Proofpoint-GUID: 4aIo4VcmqMhqApv8TORVDSrIG96forhw Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 19, 2021 at 07:39:04PM +0200, Christophe JAILLET wrote: > Le 19/10/2021 ? 15:47, Srinivas Kandagatla a ?crit?: > > > > > > On 17/10/2021 08:31, Christophe JAILLET wrote: > > > 'hphpa_on' is known to be false, so the if block at the end of the > > > function > > > is dead code. > > > > Yes, this is a dead code we should remove it. > > Ok, thanks for the clarification. > > > > > This code was part of moisture detection logic which is not enabled in > > upstream code yet. > > If 'yet' is the important word of the sentence, maybe the best is to leave > the code as-is. > If you prefer it to be removed, I can send a patch if it helps. Just delete the dead code... Never try to plan for the future, it's too unpredictable. regards, dasn carpenter