Received: by 10.213.65.68 with SMTP id h4csp228161imn; Fri, 23 Mar 2018 03:23:09 -0700 (PDT) X-Google-Smtp-Source: AG47ELu+T5opiZ6PpW0V7t98uJbS/kP/rP4bnayBEwE8gahl8jbjMOH4YRrblRu+YJH/uhn/o6Kc X-Received: by 10.99.99.65 with SMTP id x62mr6439152pgb.157.1521800589175; Fri, 23 Mar 2018 03:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521800589; cv=none; d=google.com; s=arc-20160816; b=kcovGk+/9LOKucyxrHbDerTIgOk5cHphVN6nh2Jn4iB7ywjuWNJwB4SkmebWMr95pp X+vaUWN4bqYZQfwMHXg3aoSHm3mp7MmuZZvaP/3lk4IIjShd2OYdKyvjckPZ+WRTZnjH tY06EcvMLLhuLrPRAtItpjS6U4kBCMLKd8/rzaOHh5Ly0TYrTyuZkS3QfULqOMfzsW42 VzBv3XfztEu7RwcD3ih2V7/okW4LnDFTcF3HOPwt/agIORO84F2QE/Pxwgt8L/qhpBR9 nbq5JAO97QpPLqkuQlj2it2qrbdJytlzpBsiNLyvTPnec3kVW/OyqOlwQmSnLvoqE7NJ SlAg== 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:cc :to:from:date:arc-authentication-results; bh=833FTGXRgYogJgIqXrB/BaiK9I0FHuvnbNVOj0ZLlTQ=; b=0YwCd5jjxt+SDdKKPyBwljIIScM4jP0JduLTW511Leq7PjGe+jQehbXr4cjXKZhGDF RnvwERP+RorbX/ZaL0qzzR+2zZhOv6/QvvDEgwB0ipCTv5LxZDZBsT4BL/NvDVxBnWuH HU4JaXQkzR/oRdPljrniZDRYY5mNOyiZEY69yP1gAW0BsNDTSNhS4Fhw+R8/P7VlsTY9 l/gIAQwGQO0QIwUN+Q663iFmo0srvCfhcYWO7PWzkGCsjBLmiu8UjRSdv1siIhs0AU+3 HOUseBYN5yQPhJforviKytNZqGeyZ7PKIA60j160OcvK9QzsZJvqU2YjPVnSfbW7rEYG ujlQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t23-v6si4309074ply.482.2018.03.23.03.22.54; Fri, 23 Mar 2018 03:23:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934246AbeCWKVj (ORCPT + 99 others); Fri, 23 Mar 2018 06:21:39 -0400 Received: from mail.bootlin.com ([62.4.15.54]:41489 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933916AbeCWKVf (ORCPT ); Fri, 23 Mar 2018 06:21:35 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 80E09208B1; Fri, 23 Mar 2018 11:21:32 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 2ECB12084D; Fri, 23 Mar 2018 11:21:22 +0100 (CET) Date: Fri, 23 Mar 2018 11:21:23 +0100 From: Alexandre Belloni To: sean.wang@mediatek.com Cc: robh+dt@kernel.org, mark.rutland@arm.com, sre@kernel.org, lee.jones@linaro.org, a.zummo@towertech.it, eddie.huang@mediatek.com, devicetree@vger.kernel.org, linux-rtc@vger.kernel.org, linux-pm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 06/16] rtc: mediatek: remove unnecessary parentheses Message-ID: <20180323102123.GG3417@piout.net> References: <92d07e90f43899981a82fbc684c3d15aaecaf591.1521794177.git.sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <92d07e90f43899981a82fbc684c3d15aaecaf591.1521794177.git.sean.wang@mediatek.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/03/2018 at 17:15:03 +0800, sean.wang@mediatek.com wrote: > From: Sean Wang > > Remove unnecessary parentheses due to explicit C operator precedence. > > Signed-off-by: Sean Wang > --- > drivers/rtc/rtc-mt6397.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/rtc/rtc-mt6397.c b/drivers/rtc/rtc-mt6397.c > index 0df7ccd..4411c08 100644 > --- a/drivers/rtc/rtc-mt6397.c > +++ b/drivers/rtc/rtc-mt6397.c > @@ -106,7 +106,7 @@ static irqreturn_t mtk_rtc_irq_handler_thread(int irq, void *data) > int ret; > > ret = regmap_read(rtc->regmap, rtc->addr_base + RTC_IRQ_STA, &irqsta); > - if ((ret >= 0) && (irqsta & RTC_IRQ_STA_AL)) { > + if (ret >= 0 && irqsta & RTC_IRQ_STA_AL) { I don't think this makes the code particularly clearer. > rtc_update_irq(rtc->rtc_dev, 1, RTC_IRQF | RTC_AF); > irqen = irqsta & ~RTC_IRQ_EN_AL; > mutex_lock(&rtc->lock); > -- > 2.7.4 > -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com