Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp43948pxj; Wed, 16 Jun 2021 19:49:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSoTf2XPmJy0TOrzxUTk2Tp6KjNl6K7vlQ6pnR7qTsjBXxKDeiNYK48uql6K+uqKEv+P9k X-Received: by 2002:a50:c8c3:: with SMTP id k3mr3490085edh.318.1623898140684; Wed, 16 Jun 2021 19:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623898140; cv=none; d=google.com; s=arc-20160816; b=P4B7pF4ow8fagZ+ono++ix+uGbRzkjOlMxFOPWXhhWFX0JzwAij6EQDzZRJG6RmyfU aJ7Cw+txuTByQEjyHz8uyh+JGSm9VgFxm3Jupu9cl+2LJD6uucjnsN8Bs5TBMfsekCC9 ZxFH/BanEQKTqIaB0eX1MLT+4qnXj32xCWRSHDJfYmQFZFcIpWBVm/aItvTAviOa/EJU 9Xhar9T/Z+mw6ibaoacY8uuxb/FTC1VyOWWxtSVlbu8cZOHAmd3Vy+G1bNmRRVt8NTJu q23+TxZk1fMMWbWYomenOPii69dAe9nnWydmSGvSmyzMzE43fBLxuf1+sOOuU/vcsmbR ufBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:content-transfer-encoding:date :message-id:in-reply-to:to:from:sender:reply-to:subject:mime-version :dkim-signature:dkim-filter; bh=D1qpqMB+OkXfuoIE8lfCNhPZsTDS/KWRKBsTuRhnzk4=; b=QvkZRLUjuOjqSFDLO+01CgfU0SbjEMyO9aLY5G/ViRTHOTOTB927Ss4KAf7H0QH6D4 L4eFTUIq1BC2ukRyZSTRhbeo6nSR4ok4pdHDeDOpkX+EKQjApnFTG+O++ulogEEt4xVG RzmM8Q93+9L/sbsoKZE8ivig9OSdlBVFzYQETvOOtdyvfIKeVmbJRXAm+Wz1NpYYVr67 MiYRFXzC9Co+omLLre4zo09Sth35E/H5+/C0L3xJrlCOIPvWJASHXO8GJwwx9EsO5Ogo sGR7+sAs96s+eNvHn9Ice17wMQNCAhGW2HSf+XRJpvtzL5tkIXOr59rqvGpkXdkZZ9uD kxfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="i28FkUl/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 19si3921448ejx.529.2021.06.16.19.48.38; Wed, 16 Jun 2021 19:49:00 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="i28FkUl/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231942AbhFQBfO (ORCPT + 99 others); Wed, 16 Jun 2021 21:35:14 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:14983 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231953AbhFQBfN (ORCPT ); Wed, 16 Jun 2021 21:35:13 -0400 Received: from epcas3p4.samsung.com (unknown [182.195.41.22]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20210617013305epoutp03f8f4faeabfe354c9be5f98e71b79cd77~JOpytgFwC1028310283epoutp03O for ; Thu, 17 Jun 2021 01:33:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20210617013305epoutp03f8f4faeabfe354c9be5f98e71b79cd77~JOpytgFwC1028310283epoutp03O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1623893585; bh=D1qpqMB+OkXfuoIE8lfCNhPZsTDS/KWRKBsTuRhnzk4=; h=Subject:Reply-To:From:To:In-Reply-To:Date:References:From; b=i28FkUl/aDW/UCLtvJrqynJLATyhM98s3OtUUf/QuTyASSRMHgoo+eQbIpzVTFD3W jan8vR2+WrfmuDB/0SXtdFUAjaoJzzAnv7aHYnpwJ3xNuK1DLoVTf9mIepYYgac9QP ofaq+c48DOE5jC1x7ze0YRg8fvGlMlg4Erbi5m58= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas3p1.samsung.com (KnoxPortal) with ESMTP id 20210617013304epcas3p17a347b736bc80bc03e0350435c8944c2~JOpx7PZ6P1174411744epcas3p1O; Thu, 17 Jun 2021 01:33:04 +0000 (GMT) Received: from epcpadp4 (unknown [182.195.40.18]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4G54Lm2bBjz4x9QM; Thu, 17 Jun 2021 01:33:04 +0000 (GMT) Mime-Version: 1.0 Subject: RE: Re: [PATCH] scsi: ufs: Add indent for code alignment Reply-To: keosung.park@samsung.com Sender: Keoseong Park From: Keoseong Park To: Joe Perches , Keoseong Park , 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" X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <2038148563.21623893584364.JavaMail.epsvc@epcpadp4> Date: Thu, 17 Jun 2021 10:28:39 +0900 X-CMS-MailID: 20210617012839epcms2p16d271ab83109fd286939bbb48ebba30f Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL X-CPGSPASS: Y X-CPGSPASS: Y X-Hop-Count: 3 X-CMS-RootMailID: 20210610040731epcms2p7533bc62d13b82a0e86590f30ac4b6c30 References: <1891546521.01623299401994.JavaMail.epsvc@epcpadp3> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >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? Best Regards, Keoseong