Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp252563pxj; Thu, 13 May 2021 04:14:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEvwPE/6BdmcWmWPVWvgTk3fUFGBkP0rpyok3Wuhsl9T5VPdeAkyqwb2NcH2r4/FgT/GvJ X-Received: by 2002:a05:6402:10c6:: with SMTP id p6mr50135361edu.241.1620904456026; Thu, 13 May 2021 04:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620904456; cv=none; d=google.com; s=arc-20160816; b=zr62WBFGlTHeVtSy4W2jVC9LtVLwXCOvsZq5HpsM7EpL0gQJGW4xNoUbdvv7UXsPIs Py2wvxKV2kZsOPwSpXmW0wiuNiumO/vnFP0drQdK4+gg/cWnQBQWRNlkTj8NJ0XkynON jUWeVZwHlbUcBAS73hQibBjM3V4EHOSvDTm26/zGAyS2RDVobcakElOIAfEN8DRi5E7X Sf8b9ePeuHnDqZ07vGIVl4+ZrF5xzcmpuGEn83B5RsvN+TGhXnfMXS0h/63FqJtEklAi cwv1aflmk0y3getzH9ICMxSuQGPZECGeYNr5C5VvWOXf0OUkfCZzXuQNL3CMxklI0LaG 9Axg== 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:to:from:sender:reply-to:subject:mime-version :dkim-signature:dkim-filter; bh=Vs63gqz+/TXRFMqr/QYcpMkMySWz64LQoVJF05N0H60=; b=txSHimIV3HOYul2tpoHMAXdkqL25ycfQzOTIi354TUuGRFpNOq/YUyjlEcsv4Nh7K+ YpeL3GABD56xkbLtcfcmUTwJ6GbgExf2es1jN9JNHtIvAwRHo+TvgEpAiXI/dL/Xbs/+ S2ApTM1t0jF37oc/EkV4uQhlElRKBA5buK7p3Oc5/rLPZZUO5GUmcIJ2oAYBz8SZ0eVq HK7wEb4ixgQRerm+x2Eti+gMfMoRJzyiWZJ8GM+x7Yb+o+gacoq/FqU5p8oJ9ie5I4e9 rWLKYzbkO0TuaK7PBHemypmEanK7dlmHmCQEEluuLnxhBhmeDvmlRqN/v8b8fREbUkDL X0rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=f+eRw09K; 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 e6si3026907edz.576.2021.05.13.04.13.49; Thu, 13 May 2021 04:14:16 -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=f+eRw09K; 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 S232461AbhEMJDe (ORCPT + 99 others); Thu, 13 May 2021 05:03:34 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:36912 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232467AbhEMJBQ (ORCPT ); Thu, 13 May 2021 05:01:16 -0400 Received: from epcas3p1.samsung.com (unknown [182.195.41.19]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20210513090002epoutp01ac252aac505803aff5616be123a38708~_lLDFDA1C0116801168epoutp01o for ; Thu, 13 May 2021 09:00:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20210513090002epoutp01ac252aac505803aff5616be123a38708~_lLDFDA1C0116801168epoutp01o DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1620896402; bh=Vs63gqz+/TXRFMqr/QYcpMkMySWz64LQoVJF05N0H60=; h=Subject:Reply-To:From:To:Date:References:From; b=f+eRw09KUk9fyev6ZBdMnyqE+d5QdipHpGYXHiBazIFEYn37FUQpghv7wOveBNsmN 4xMs3GcFZvtr0r4uwWQ0dYiwp05iJ9HX6cSA1KVuJurWzQpCuNK4i8QszUJ3ZPvaX2 t/epAIGOw/a0VUcmxxTuQX/iXbMGB9C7cPkXQpH8= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas3p4.samsung.com (KnoxPortal) with ESMTP id 20210513090002epcas3p4f3534836b1efd1894a610a158d8d36df~_lLCfcehG3160431604epcas3p4D; Thu, 13 May 2021 09:00:02 +0000 (GMT) Received: from epcpadp3 (unknown [182.195.40.17]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4Fglwf0bg7z4x9Px; Thu, 13 May 2021 09:00:02 +0000 (GMT) Mime-Version: 1.0 Subject: [PATCH] scsi: ufs: sysfs: remove redundant parenthesis Reply-To: keosung.park@samsung.com Sender: Keoseong Park From: Keoseong Park To: ALIM AKHTAR , "avri.altman@wdc.com" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "cang@codeaurora.org" , "stanley.chu@mediatek.com" , "beanhuo@micron.com" , Keoseong Park , "asutoshd@codeaurora.org" , "jaegeuk@kernel.org" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" X-Priority: 3 X-Content-Kind-Code: NORMAL 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: <1891546521.01620896402035.JavaMail.epsvc@epcpadp3> Date: Thu, 13 May 2021 17:53:20 +0900 X-CMS-MailID: 20210513085320epcms2p87452b605eb1353caaf1add0b5488c88b 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: 20210513085320epcms2p87452b605eb1353caaf1add0b5488c88b References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch removes unnecessary parenthesis in ufshcd_is_wb_flags/attrs() Signed-off-by: Keoseong Park --- 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