Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2101997ybi; Sat, 13 Jul 2019 06:52:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2Ome0brAwkqnJmsf8P4qTUCW7wSYgUgIVKFDKuLd4o6HX8/i2Cz6PSntz3pO/GruE0DuU X-Received: by 2002:a17:90a:3548:: with SMTP id q66mr18630448pjb.17.1563025959709; Sat, 13 Jul 2019 06:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563025959; cv=none; d=google.com; s=arc-20160816; b=OeGmB9h2NvBAKyzWXIMAICDrAg6ifv5vMSsEjoKGNOJ93oTIG5fO4ZyGgl45yG+un2 v79D8HCe7WrfsX7Pg4gToRG8A9hc3wYcssuTOIp1J0/pxX4BA8GVhakbtyBw+ildDOF4 /JJhD94n9WlNppKWHm6RxrW05vAhHDc3vlz0teBWHr+2YlOdpX6wetCwXMId3FymgK1v Yp4z2ruupRMjm4H9s1FEpF+dcWSQR3cKHrT564s6Y+zkRB7mvcatb5V9vBOeyCPkAH4Z 7mxPHYNGb/QDsELW3nd1Y7JsHzcT0FqVmQMShS+22mT8RVLaUg8I2Gi7yCqaqKBTH706 2xmQ== 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=SJUeu1gN7/mspxsTa9EOncf4StCjWZ5cgxwVtZifj3A=; b=aAGOz8dDIL/L20rzj6IKaXsRq+uX7v/SAKX7S87pstn/czQIiz2PkGOtMa+x3/g6by bsHeY5Xb7PkQfyAEGd/7Clj6u3A7w5VabGD0U9/fHYrj8VLKt0SYQU/xt8Tfq5BhorNl N5MeP6AqpeVzEGopkt+XwL/sKdnpbmKArhDD67WgqN/A5rxdVVGfv17DEo1//yPB30V+ mochEbc355irZ275y5RSVo+uzPySeWohRBPA0ZCucd7HOZV4f06K55u5fQqXYXyn3Gzu XIl845aWVBw0t7L/1OYSeYCMOLCq5lPDEVc2OAVnOCUEwa5+1n6/jphfSZ3Tha2wVkRu TQvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q2M9092B; 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 u20si10192525plq.421.2019.07.13.06.52.24; Sat, 13 Jul 2019 06:52:39 -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=q2M9092B; 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 S1727768AbfGMNux (ORCPT + 99 others); Sat, 13 Jul 2019 09:50:53 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:39242 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726474AbfGMNux (ORCPT ); Sat, 13 Jul 2019 09:50:53 -0400 Received: by mail-pf1-f194.google.com with SMTP id f17so1531389pfn.6 for ; Sat, 13 Jul 2019 06:50:52 -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=SJUeu1gN7/mspxsTa9EOncf4StCjWZ5cgxwVtZifj3A=; b=q2M9092BrLcdUt5eYWDzQ+aCrFKTpwzF0n0qmbHJ3eXbDuRK9+aoKd1YPZWKzOzhQR U5nsaMEOWJi470JXtoCvLB1l7lfDugZdeMbEg9qbL+AKGPLdxjqYKKvpUi/AqIO8aSn5 VbByuVEycdkVv/oazW5sIvaydMKxKaoJKZ/m9dqAp+aiynsf3kglFptTAHo7v6+hcMXm 6ojRuygk8qRbgngucJjsaIDuREbfMNtKVyKfMagXQTmzN1AQjN69ATFpOxCIHQo+CGuq iTD/2kS4Ehp5UdnpWsXNfOJF3Tkas1QBCjRUSlotHPJZByP9lLLjsEZBve3IZm4mwRc+ f+IQ== 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=SJUeu1gN7/mspxsTa9EOncf4StCjWZ5cgxwVtZifj3A=; b=BJL+ESkzL0WW3SgWANPVkBrp64R3bKJZhzv3APkMyEE/YgGkd76KmOZz2C6C9Whi5n gmyRTbPDNlp1FLizErPbMRmJt4XPpu9jH7dhOtRGqFYPW3sFeidEOMbd+uqe37dEKPnW e7G2P+Zu6zZb7eLciM8q2j9d4Pspn6kuRJRQOKnks8E/ox5bfuIVnBK4TizesE/nGIdo fC1jPM9W4q/AYRv97N1iFFQvu2vmUG+Xg7IaSB2l03/V5l+MkUtM8D9lx3A+yuoKpjg9 9FyWuEXfKH5M3Gl8dVDbODngr6jrrX1Kjsrr/yIyOt7H8XWCjHaHveqjSwCylnGmDcGV hVmw== X-Gm-Message-State: APjAAAXsKiYXmlC8peS4uBBrJZvd0hHPzkkMu9XkNa6Y2brq+vAIKELd s/GWBHMll9IOqDVqFklEqrg= X-Received: by 2002:a17:90a:1904:: with SMTP id 4mr18892921pjg.116.1563025852464; Sat, 13 Jul 2019 06:50:52 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id l124sm12080395pgl.54.2019.07.13.06.50.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Jul 2019 06:50:51 -0700 (PDT) Date: Sat, 13 Jul 2019 19:20:46 +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: <20190713135045.GA15087@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 the statments in if/else look similar to >me but they are not.