Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp810919pxj; Thu, 17 Jun 2021 14:34:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAbK0u+9POoFetQh6F5ZnSQ8TH0wDU3oR32BmOJTtreYXi9qkIIQH7S0hTiD/yHbnkRMTE X-Received: by 2002:a50:85cd:: with SMTP id q13mr503648edh.216.1623965687412; Thu, 17 Jun 2021 14:34:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623965687; cv=none; d=google.com; s=arc-20160816; b=ImZHWlakmZxsK3vrPBlZHIP5Az9ID73zt0IpKXy2NE2k9S/wDl9muehWN+oI8J7UeI 1fMHitFWupoAfA1uvhobYGB1mNQWcQlfxfO6WkdL2RcrxzO02v6kA96fegNJGFVISbXx +zvcrUZaBA5PAuCJFo3555koMXkEXjb4OY9ZkMXtlPF8ild1SSKuSo6kXanEKkqhAtkm SChHG90advnMBkNI3egnFNerOS5tSVrQfOFaXBbt330ZJdUIbuli4mwnOVlsH47fpL7Q AqmakF7wh9rKaPiq1X8Ip6LeBdY/RytzJiavJkmCJQzKwgA+EwSkgomuIb0RHO8zKqUj 8Gtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:user-agent:date :mime-version:references:in-reply-to:to:from:subject:message-id; bh=FHbaQdDhDrvMOZNPMquu/3oiiC4A78bW28r1W4QKb6s=; b=WjoeSMDxqQfACkaA8CtFZfkQPHkL2Y1V4UiFdF4GPpRmFkOa+nlX2JkW+cudVhhP1Z TBQODa7s2Qf19fXxvL5fpSaQNEfOa6F66BtfmwJ4/tmwWsZvW/I+Rw1kFWB0Pwh6gldJ uuB3ddZCmyIeyHr8feUu35fLLf0VZodkPkaOKwPwVZr5X4b8UgTsXUDzj6N53Oj9W8Fk PF3a26zsZ1h5w/DRSu0S9TTtMtDhOgP/u3LhavfT2yEB9+yXnV3+qiwYt6KYHtehZAmC oLeFaZYunRN+wUoGOwaItiX+rfj3BMoNhZMmVGTYoaQEOKKWmdoxBSY4zeCmJOyvxWGv 0egg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si195830ejj.534.2021.06.17.14.34.24; Thu, 17 Jun 2021 14:34:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232743AbhFQU7D (ORCPT + 99 others); Thu, 17 Jun 2021 16:59:03 -0400 Received: from smtprelay0204.hostedemail.com ([216.40.44.204]:54456 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231241AbhFQU7C (ORCPT ); Thu, 17 Jun 2021 16:59:02 -0400 Received: from omf18.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id BC68C181D341E; Thu, 17 Jun 2021 20:56:52 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf18.hostedemail.com (Postfix) with ESMTPA id 67AC22EBFA9; Thu, 17 Jun 2021 20:56:50 +0000 (UTC) Message-ID: Subject: Re: Re: [PATCH] scsi: ufs: Add indent for code alignment From: Joe Perches To: keosung.park@samsung.com, ALIM AKHTAR , "avri.altman@wdc.com" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "stanley.chu@mediatek.com" , "cang@codeaurora.org" , "beanhuo@micron.com" , "adrian.hunter@intel.com" , "asutoshd@codeaurora.org" , "satyat@google.com" , "bvanassche@acm.org" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" In-Reply-To: <2038148563.21623893584364.JavaMail.epsvc@epcpadp4> References: <1891546521.01623299401994.JavaMail.epsvc@epcpadp3> <2038148563.21623893584364.JavaMail.epsvc@epcpadp4> Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 Date: Wed, 16 Jun 2021 20:35:26 -0700 User-Agent: Evolution 3.40.0-1 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.82 X-Stat-Signature: z3xgzx8m9jjdsnu1s1ughpj8i4gd4pod X-Rspamd-Server: rspamout04 X-Rspamd-Queue-Id: 67AC22EBFA9 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19iIO6/WA0deVKmYeoqXnlVruH+W3b95WY= X-HE-Tag: 1623963410-885665 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-06-17 at 10:28 +0900, Keoseong Park wrote: > > On Thu, 2021-06-10 at 13:07 +0900, Keoseong Park wrote: > > > Add indentation to return statement. > > [] > > > diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h > > [] > > > @@ -903,7 +903,7 @@ static inline bool > > > ufshcd_is_intr_aggr_allowed(struct ufs_hba *hba) > > > ? else > > > ? return false; > > > ?#else > > > -return true; > > > + return true; > > > ?#endif > > > ?} > > > ? > > > > Perhaps a little refactoring instead: > > --- > > drivers/scsi/ufs/ufshcd.h | 12 ++++-------- > > 1 file changed, 4 insertions(+), 8 deletions(-) > > > > diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h > > index c98d540ac044d..ed89839476b3b 100644 > > --- a/drivers/scsi/ufs/ufshcd.h > > +++ b/drivers/scsi/ufs/ufshcd.h > > @@ -894,15 +894,11 @@ static inline bool > > ufshcd_is_rpm_autosuspend_allowed(struct ufs_hba *hba) > > static inline bool ufshcd_is_intr_aggr_allowed(struct ufs_hba *hba) > > { > > /* DWC UFS Core has the Interrupt aggregation feature but is not > > detectable*/ > > -#ifndef CONFIG_SCSI_UFS_DWC > > - if ((hba->caps & UFSHCD_CAP_INTR_AGGR) && > > - !(hba->quirks & UFSHCD_QUIRK_BROKEN_INTR_AGGR)) > > + if (IS_ENABLED(CONFIG_SCSI_UFS_DWC)) > > return true; > > - else > > - return false; > > -#else > > -return true; > > -#endif > > + > > + return (hba->caps & UFSHCD_CAP_INTR_AGGR) && > > + !(hba->quirks & UFSHCD_QUIRK_BROKEN_INTR_AGGR); > > } > > > > static inline bool ufshcd_can_aggressive_pc(struct ufs_hba *hba) > > > > Hello Joe, > Thanks for your advice. > As you mentioned, refactoring looks good. > However, since the content does not match the title, can I submit a > patch with a new title? Yes of course.