Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2099361ybi; Sat, 13 Jul 2019 06:49:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCEmrbYcYza6MWRKcskw5UaQ8HxIxOhXzaeirOanmNothSTO9XHGXICgfAHuwjd+Y3KL39 X-Received: by 2002:a17:902:1e2:: with SMTP id b89mr18266790plb.7.1563025744749; Sat, 13 Jul 2019 06:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563025744; cv=none; d=google.com; s=arc-20160816; b=1EFWTu9dDMmQWfxPOPYM7jnZsOyLY7rhuNZC1crWK0OfR0Q9k83s1+o212G7fRwaGJ +r29eXqSmaDnVgYTXOkKBFgFAWEimnsFuLDwt7g1TguQRAZtEC2/K6Ub24RBgPibT5yX DLjJmYjJaSIuaUl16BwBGwzvu/PyaTMPByg8RGKqufTmxciTGUj5xe70VxUlmt4SByBF rOhEvgW/QKIgSwJuNeLwVsIdDJu/gH0Ku6Wc8h4Aw35TdAPtmkW986AjHyf8OGdyZB+1 IHPeIIcANnJCcgDdf83VbddKjtSb3QYXFCn2giR2NHnhtbGpZfCvOeJFrcFeE6R4+7LY aLSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature; bh=MHQBlqOJyDDBTOKEayCnxnSR5munfqfFU78suNbldEE=; b=exna4JMIaJ1n7ZhGW/RkM02i7Mv9qri8aYsELItt8adZWLS8EjVJ/rmjpmViK9MVPq tY9DH5AyUD2oN3aO+IH84GhmZvZ4yFTkEPgPdABAxTDxVFWQ1sBBFIl8DSvO7lAmn+O7 qzMHAMSDeu/EZ5tmnkxVdbijoun3z5WLsKDpJJ5/SWyxDYxME1Cg+hAKUPA470mt1fmX KPcP6r3Edtpmk87EpJsCfweZqFA0XglEQrXw3AMP0ucTgZ+LhOZZlP08+IRpSx/+Ezfh GLad64mk9WSDlJITO32EEzNYV9KYe27JJYOB19Mjm1r+r4iyil4kXlyOLurqQ/yb55gy yZIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ma5ZI12l; 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 k192si11044470pge.222.2019.07.13.06.48.34; Sat, 13 Jul 2019 06:49:04 -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=ma5ZI12l; 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 S1727678AbfGMNrq (ORCPT + 99 others); Sat, 13 Jul 2019 09:47:46 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35273 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726474AbfGMNrq (ORCPT ); Sat, 13 Jul 2019 09:47:46 -0400 Received: by mail-pg1-f194.google.com with SMTP id s27so5778519pgl.2 for ; Sat, 13 Jul 2019 06:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=MHQBlqOJyDDBTOKEayCnxnSR5munfqfFU78suNbldEE=; b=ma5ZI12lrynFaFq1wLNZC05ShF9C4Nts9tZIFj8OvXtp8WeNkuxldGyQbBwe0GZd1P zuNCYWgikc/cQdadbV4+8Gh6puzyackdUOLErtBHBKeRhZ/X+Xrkspn1twK72wyjxg8O 9yj5y5CHmXySPbd7mvQayFRQYwG1cjMgCXOVAeCjKVrd23sgt08AuQe2a2M7Iv4XxmHH qjZ5ZCBgY7nG+15syDrBGfMy0AQ+p66nbl3DRUPM45C41TLAch0kIKaaCYu5Sz6Mvxto 12xZ83WzEh3uZp1tAI14k8cJgGS6Xn7N2cwmoxbWRFoJSpxa8Bwz+UaqZYbht9Tod5gr fMKw== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=MHQBlqOJyDDBTOKEayCnxnSR5munfqfFU78suNbldEE=; b=UUrAotKm5ZlhIS33YhrEsv6LvoNSFNBOHGAPd78gUrD3Z1HLxsDkP27pkM2pJwc4jS MGs4cjWYAJ1Uq76YfwUPTir5P9D9Q6176A2qlQHQYGz6qT788I3mz3OHOSQjO6uf/R2N b7Dzo2a3F+xaSnzjJxK6YIf1jqN+njvu1jouYfv2z3BDdU6pYhm5UxDUs8oiZoiVWIg0 zRHqx54xG25CjmpZHH5si+m8UmGsA3b06l6aMH0vlTRZmmfiNO9NplQMd7NNM8+ur21N MdU/6A6iskCYzfU91UbIk7UyOskxi5O/SCkKbjYm30v+x+7zTwA6yIKeUdxmqyJC7hmv Ftfw== X-Gm-Message-State: APjAAAURq4STHSlz178dC0H/DjgmBnzboWBzYp1cQ0NUlw4dN2m5CwOr dmH6lubIzh+LSMxPM0fN8B4= X-Received: by 2002:a65:5cca:: with SMTP id b10mr17317538pgt.365.1563025665379; Sat, 13 Jul 2019 06:47:45 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id cx22sm9934041pjb.25.2019.07.13.06.46.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Jul 2019 06:47:44 -0700 (PDT) Date: Sat, 13 Jul 2019 19:16:34 +0530 From: Hariprasad Kelam To: Joe Perches , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Srinivas Kandagatla , Vinod Koul , Wen Yang , Gen Zhang , Dan Carpenter , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sound: soc: codecs: wcd9335: fix "conversion to bool not needed here" Message-ID: <20190713134633.GA9749@hari-Inspiron-1545> References: <20190711174906.GA10867@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Thu, Jul 11, 2019 at 03:00:00PM -0700, Joe Perches wrote: > On Thu, 2019-07-11 at 23:19 +0530, Hariprasad Kelam wrote: > > 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); > > /* > > This change makes no sense and doesn't match the commit message. > > Please ignore this patch. > Both statments in if/else loop looked > similar to me but they are different.