Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10793932ybi; Thu, 11 Jul 2019 11:05:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlp1lwVfSWBj12/xtbDHg69JMt50DQ+uS95n/Vs+/kimBshX5UlbYec0F3vMps4Lhx/Pc0 X-Received: by 2002:a17:90a:d593:: with SMTP id v19mr6332322pju.1.1562868348583; Thu, 11 Jul 2019 11:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562868348; cv=none; d=google.com; s=arc-20160816; b=NUoFIhJwDvX8ANs34/cnsw8EOw4SkQhorIRupTeCOV+RDPefsaURxxrZhmv2DWUFZp lbzOqg7m46W2nIPMvS+/omrmOc8WJIlnplqHAY2dOQ0YgGOzHeQGaV5Dw/KJ0DBNN54j 5xd5024hwCfZccEvznK5MmUDodTCLkQ+wlZ1dZ8HWUJXv2zET0SIMfn7uwCN7VIug/vM cnuag+K/inRjPlhur5bLKdYY6jrkyBpxhh7KZ04z1rMbQl7b9bJNPrDEsMsaulqnOQVN n8MYI2T+29cDPBxNIRsmEo65t+hpizuXdApaNWkm42ny0+0obv/p/lvCoclYpYGngK3H JS7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=Mrtm+42mKXJyXI1jqGIgzb23Y5WaFCmewuRRxjnIfds=; b=THPtafg0zFXKUN1qur7scXI+OYYgiEtddH/3a3ToQKUVh4fbNotIv3svqra2dSfvas BlkutqtKnqG/QeOINL8zXlAbUe4UeKPqVLJ7krPBRalny/YtpiCgogVoNpVpjgbXE2mB K9OD8cPipbWI/Gn0xnBYaP4KX5iErwcRyI8AorjAGCvJ+GufnrmvhhHFCrl+/wXP4wcH qqIs8RK318snFOEqfNRRu3faZS2ilRbyoE/wAyqaRdcZTopxI31da/HlMZAqK6UjkbIO /zaGlDergyA+WZBAjAR3Fkrm7604UZoKmTz+581SSU/Jfb2XdWUSRH9oyY0TAPSNVMC6 4f0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a1U5AoD3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d22si5688968pgl.421.2019.07.11.11.05.31; Thu, 11 Jul 2019 11:05:48 -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=@gmail.com header.s=20161025 header.b=a1U5AoD3; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728853AbfGKRtP (ORCPT + 99 others); Thu, 11 Jul 2019 13:49:15 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:36913 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728479AbfGKRtO (ORCPT ); Thu, 11 Jul 2019 13:49:14 -0400 Received: by mail-pf1-f194.google.com with SMTP id 19so3103453pfa.4 for ; Thu, 11 Jul 2019 10:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=Mrtm+42mKXJyXI1jqGIgzb23Y5WaFCmewuRRxjnIfds=; b=a1U5AoD3hkSIItL8HiNNo7PFR4wX/QYAlw457C7RrSX5rOFi4TkzHWxCKO0LUF0Ofp StIat4u1q9RTPUeU3gX0H4AqbIljtz35UoRLLzRRW6SSj996v3KIWMhtvagA9QVhw7HA iI9EgguM0sZmy7c130Md82ABD0glJ/vJHtfphaRS/45jT4LJviORGdt33qqmfIHw51zk heocyYKTaZ7DQjn5Z6+nv/Cb/1Md7cGwkrxCv5LpsVR19I+OpLBEp8OJCH+AZuYxh4yy CPKwXb9o7FPmndgG0JcHMZovsY254hE4eg8SN1ZDRGl4yULogViTchMWdeiXGCfv+cis yxlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=Mrtm+42mKXJyXI1jqGIgzb23Y5WaFCmewuRRxjnIfds=; b=WYZ8PfepkGaGTmgbaJzHx3evJDxnTc+o1agv+aCQjfsW+JFaN4+MNj69VPTCqfQaJ+ tR59xyKQF5iSmanNShgbNKjPhGdEbGE+lsoBwAQOplyr6eJKBMQ1upTsMWE2XIxQzwi9 nA0SSyKn1VS/ZPYae3XMy6LDSNoMcTeGq1pzZXErlZUEpMkGG1qui2NudqfZO0Ic/6bt nT1TTAP3SgfhiSAHoivvZ1bE/5OpWh3Zv5ty4AulEY5yLc26U9V6KyIm2reXgmwm9XUJ XU/ksY2qPy5Lf2k+akuIdQuP5ZO0ZMzBH8qzbLMuBiH/JTXLwVscNwU0qPlnMANkq0Ip hcEA== X-Gm-Message-State: APjAAAWOTcd/vi1kcXAF72PNALCzfosrsnSrZPpqcRXqDblN8r3hgCOK 04f+88SccVFPH+GUaXECfwA= X-Received: by 2002:a63:b46:: with SMTP id a6mr5801358pgl.235.1562867354148; Thu, 11 Jul 2019 10:49:14 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id b11sm6834267pfd.18.2019.07.11.10.49.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jul 2019 10:49:13 -0700 (PDT) Date: Thu, 11 Jul 2019 23:19:06 +0530 From: Hariprasad Kelam To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Vinod Koul , Wen Yang , Gen Zhang , Hariprasad Kelam , Dan Carpenter , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] sound: soc: codecs: wcd9335: fix "conversion to bool not needed here" Message-ID: <20190711174906.GA10867@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix below issue reported by coccicheck sound/soc/codecs/wcd9335.c:3991:25-30: WARNING: conversion to bool not needed here Signed-off-by: Hariprasad Kelam --- sound/soc/codecs/wcd9335.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index 1bbbe42..85a8d10 100644 --- a/sound/soc/codecs/wcd9335.c +++ b/sound/soc/codecs/wcd9335.c @@ -3988,12 +3988,7 @@ static irqreturn_t wcd9335_slimbus_irq(int irq, void *data) regmap_read(wcd->if_regmap, WCD9335_SLIM_PGD_PORT_INT_RX_SOURCE0 + j, &val); if (val) { - if (!tx) - reg = WCD9335_SLIM_PGD_PORT_INT_EN0 + - (port_id / 8); - else - reg = WCD9335_SLIM_PGD_PORT_INT_TX_EN0 + - (port_id / 8); + reg = WCD9335_SLIM_PGD_PORT_INT_TX_EN0 + (port_id / 8); regmap_read( wcd->if_regmap, reg, &int_val); /* -- 2.7.4