linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: ufs: sysfs: remove redundant parenthesis
       [not found] <CGME20210513085320epcms2p87452b605eb1353caaf1add0b5488c88b@epcms2p8>
@ 2021-05-13  8:53 ` Keoseong Park
  2021-05-22  4:41   ` Martin K. Petersen
  0 siblings, 1 reply; 2+ messages in thread
From: Keoseong Park @ 2021-05-13  8:53 UTC (permalink / raw)
  To: ALIM AKHTAR, avri.altman, jejb, martin.petersen, cang,
	stanley.chu, beanhuo, Keoseong Park, asutoshd, jaegeuk,
	linux-scsi, linux-kernel

This patch removes unnecessary parenthesis in ufshcd_is_wb_flags/attrs()

Signed-off-by: Keoseong Park <keosung.park@samsung.com>
---
 drivers/scsi/ufs/ufs-sysfs.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/ufs/ufs-sysfs.c b/drivers/scsi/ufs/ufs-sysfs.c
index d337839c19dc..4807d218b16c 100644
--- a/drivers/scsi/ufs/ufs-sysfs.c
+++ b/drivers/scsi/ufs/ufs-sysfs.c
@@ -724,8 +724,8 @@ static const struct attribute_group ufs_sysfs_string_descriptors_group = {
 
 static inline bool ufshcd_is_wb_flags(enum flag_idn idn)
 {
-	return ((idn >= QUERY_FLAG_IDN_WB_EN) &&
-		(idn <= QUERY_FLAG_IDN_WB_BUFF_FLUSH_DURING_HIBERN8));
+	return idn >= QUERY_FLAG_IDN_WB_EN &&
+		idn <= QUERY_FLAG_IDN_WB_BUFF_FLUSH_DURING_HIBERN8;
 }
 
 #define UFS_FLAG(_name, _uname)						\
@@ -793,8 +793,8 @@ static const struct attribute_group ufs_sysfs_flags_group = {
 
 static inline bool ufshcd_is_wb_attrs(enum attr_idn idn)
 {
-	return ((idn >= QUERY_ATTR_IDN_WB_FLUSH_STATUS) &&
-		(idn <= QUERY_ATTR_IDN_CURR_WB_BUFF_SIZE));
+	return idn >= QUERY_ATTR_IDN_WB_FLUSH_STATUS &&
+		idn <= QUERY_ATTR_IDN_CURR_WB_BUFF_SIZE;
 }
 
 #define UFS_ATTRIBUTE(_name, _uname)					\
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] scsi: ufs: sysfs: remove redundant parenthesis
  2021-05-13  8:53 ` [PATCH] scsi: ufs: sysfs: remove redundant parenthesis Keoseong Park
@ 2021-05-22  4:41   ` Martin K. Petersen
  0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2021-05-22  4:41 UTC (permalink / raw)
  To: avri.altman, linux-kernel, ALIM AKHTAR, stanley.chu, beanhuo,
	Keoseong Park, asutoshd, cang, linux-scsi, jejb, jaegeuk
  Cc: Martin K . Petersen

On Thu, 13 May 2021 17:53:20 +0900, Keoseong Park wrote:

> This patch removes unnecessary parenthesis in ufshcd_is_wb_flags/attrs()

Applied to 5.14/scsi-queue, thanks!

[1/1] scsi: ufs: sysfs: remove redundant parenthesis
      https://git.kernel.org/mkp/scsi/c/7f2b3c8bcb7f

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-22  4:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20210513085320epcms2p87452b605eb1353caaf1add0b5488c88b@epcms2p8>
2021-05-13  8:53 ` [PATCH] scsi: ufs: sysfs: remove redundant parenthesis Keoseong Park
2021-05-22  4:41   ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).