Skip to contentSkip to conversation

scsi: ufs: sysfs: remove redundant parenthesis

PATCH Applied Keoseong Park 2 participants 2 messages May 13, 2021 – May 22, 2021 1 message not in the archive SCSI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20210513085320epcms2p87452b605eb1353caaf1add0b5488c88b@epcms2p8

#1 lore raw

PATCH 1/1 scsi: ufs: sysfs: remove redundant parenthesis

This patch removes unnecessary parenthesis in ufshcd_is_wb_flags/attrs()

---
 drivers/scsi/ufs/ufs-sysfs.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/scsi/ufs/ufs-sysfs.c +4 -4
index d337839c19dc..4807d218b16c 100644
@@ -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)					\
Signature · 1 line
2.17.1