From patchwork Fri Nov 11 06:22:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Lee X-Patchwork-Id: 18492 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp573650wru; Thu, 10 Nov 2022 22:26:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf7lCK3s5kIdGJDDITfcF5gdjV3CRjp3Fs00PjNRKUzEssAdW/A3nDOudog0LE5gZh/Jx8ij X-Received: by 2002:aa7:d4d0:0:b0:462:273b:6b5c with SMTP id t16-20020aa7d4d0000000b00462273b6b5cmr242757edr.57.1668148008969; Thu, 10 Nov 2022 22:26:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668148008; cv=none; d=google.com; s=arc-20160816; b=qdvfQ2YcecSmtyJmfB2TVvhgUYWo+bj3tWUnZyhV+cIL1sI2/yZlTXmO0kN7rj7190 38rVolgzXkAGmPstPUDRwoVCxDmhQb6Wrl+e+2KIePi6dPJJcwC3cdBP4lHhWrLEhKVZ fJb+ZXgGP3GfU+B21bOjjW3OqjqiuJO1zhYeRxWjSituytaOi4M0nCwQ/IzP4d932PYZ T7Yvrwh+xHNbC685ny78vMEbKgAf7WFGOeFzNGwPPrh+y7jzqyaOashjpfctG8Itx64f aTZlCY+4HN2KinY2560Bg+qq1OdttKYvUKCCSIvsNfZusbfNeB1DvNsvL/VkOcBeX4cN sLxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature:dkim-filter; bh=0cd+7Lq/ft2W5HNN+7DpuSMIvfuHBZKLeits1YX9l9s=; b=dc86g3SU4+AUdqCA0W8e0ymcg36lDcU6wJ4MgsydwAr7dT/z5pEUoXmpCWT1ghzgRI naGt9f/wS4bLQLClKEHM27u2+VvFsGecPfLySYxCNqY/MyQ9phS6zyswwsUzM1lJ88Uz GPVXm3WuF2UQfOJma2KiUrQu8ovhgaTCJBkTHtiUw954Wgqbf9Q08YV1EE8gyJ2UHIAV XFzCJpPvGhN+l7caBQmSCIUtrvmaBA4v4eZ9v2wqemXg0H28fArFYqr8cKOhLuL3a/KD W/tqPHITy09U938N7H3/AN362WIh56Ybqm/eu7el1nhige3lGlS+Ed2IL79Q9kW+PA0r wnWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="STAZag/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020aa7df94000000b00463a4ca44e0si1309473edy.138.2022.11.10.22.26.26; Thu, 10 Nov 2022 22:26:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="STAZag/C"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233048AbiKKGZD (ORCPT + 99 others); Fri, 11 Nov 2022 01:25:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233030AbiKKGXH (ORCPT ); Fri, 11 Nov 2022 01:23:07 -0500 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C9007298C for ; Thu, 10 Nov 2022 22:22:40 -0800 (PST) Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20221111062239epoutp02ead9b98db1369579b8d0e8862b9194c5~mc4xy2ZVG1790417904epoutp02x for ; Fri, 11 Nov 2022 06:22:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20221111062239epoutp02ead9b98db1369579b8d0e8862b9194c5~mc4xy2ZVG1790417904epoutp02x DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1668147759; bh=0cd+7Lq/ft2W5HNN+7DpuSMIvfuHBZKLeits1YX9l9s=; h=From:To:Cc:Subject:Date:References:From; b=STAZag/CsQrlLTzbj+ZVT1HXAgaK1fF2F+3zO99sbz9pwrjV0yZWlGCz5t8c7345G +uXFz/PpytRLG+GZ72L77KbLBlD8tD057711qm/cW4/9mQdoERTmkKIatN66IffEWl UbAQC8yyuIrQxRSp8drHtFMzWNP8a7wZAysAATJ0= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20221111062238epcas1p4c98dbc13419ee5398d5ae978a8094e7e~mc4xU5nFJ1030410304epcas1p4T; Fri, 11 Nov 2022 06:22:38 +0000 (GMT) Received: from epsmges1p5.samsung.com (unknown [182.195.36.226]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4N7pXZ32Tkz4x9Pw; Fri, 11 Nov 2022 06:22:38 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id E0.64.20046.E2AED636; Fri, 11 Nov 2022 15:22:38 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20221111062238epcas1p3418881a8f028e97afbb498645704c9c5~mc4w4ZiLL2013220132epcas1p3n; Fri, 11 Nov 2022 06:22:38 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20221111062238epsmtrp23f7fe336a5e0207431862d27ef00ecc2~mc4w3jC912943729437epsmtrp2L; Fri, 11 Nov 2022 06:22:38 +0000 (GMT) X-AuditID: b6c32a39-5cdfd70000004e4e-a1-636dea2e8094 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id E5.35.14392.D2AED636; Fri, 11 Nov 2022 15:22:37 +0900 (KST) Received: from localhost.localdomain (unknown [10.253.100.232]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20221111062237epsmtip2dd0893159d27e1af28a4cfc05466a530~mc4wlV_7A2541425414epsmtip2Q; Fri, 11 Nov 2022 06:22:37 +0000 (GMT) From: Chanwoo Lee To: alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, jejb@linux.ibm.com, martin.petersen@oracle.com, beanhuo@micron.com, adrian.hunter@intel.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ChanWoo Lee Subject: [PATCH] scsi: ufs: core: Change the variable's(check_for_bkops) type Date: Fri, 11 Nov 2022 15:22:09 +0900 Message-Id: <20221111062209.7365-1-cw9316.lee@samsung.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPJsWRmVeSWpSXmKPExsWy7bCmnq7eq9xkg4uXRS1OPlnDZvFg3jY2 i5c/r7JZHHzYyWIx7cNPZosZp9pYLRbd2MZkcXnXHDaL7us72CyWH//H5MDlcfmKt8fiPS+Z PCYsOsDo8X19B5vHx6e3WDz6tqxi9Pi8Sc6j/UA3UwBHVLZNRmpiSmqRQmpecn5KZl66rZJ3 cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtC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A+NgFjrFLMWRmVeSWpSXmKPExsWy7bCSvK7uq9xkg2WXzCxOPlnDZvFg3jY2 i5c/r7JZHHzYyWIx7cNPZosZp9pYLRbd2MZkcXnXHDaL7us72CyWH//H5MDlcfmKt8fiPS+Z PCYsOsDo8X19B5vHx6e3WDz6tqxi9Pi8Sc6j/UA3UwBHFJdNSmpOZllqkb5dAldGU+c0toL5 HBV/PpxgamB8ytbFyMkhIWAi0XjiEWsXIxeHkMBuRonDrbOZIBJSErv3nwcq4gCyhSUOHy6G qPnEKDHj/kYWkDibgJbE7WPeIOUiAq8ZJa73OILYzAIaEidnPWEHsYUFfCU6V69iBbFZBFQl rs79AxbnFbCSWPhkGtQN8hJ/7vcwQ8QFJU7OfMICMUdeonnrbOYJjHyzkKRmIUktYGRaxSiZ WlCcm55bbFhgmJdarlecmFtcmpeul5yfu4kRHNxamjsYt6/6oHeIkYmD8RCjBAezkggvt0Z2 shBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeC10n44UE0hNLUrNTUwtSi2CyTBycUg1MK/NetvCu 6v5T8ZK5faaP55k7TpnJJxKKQydPUuypn1v7xHI6yxuWGWGPtxx0aP6ymc1haVH/kcQzPaX/ NFt+60m8eHJY+r77pSPX6hmYS2WuyWrvdSphUbjg/nPpWg0Gfv+TmkvtFkjtaQ3KnDCl9tWd w8s55RZtr2xZ9WP3pns7Tl0xU1hpoFkw+5rwPD8Wj7WXrz77Gm3xpnLHHeG5P94wnlNzuejP FGu0UGpD59LkVu7GIJnQ5akhQVUzj/1cyl4pF/gpR7TyTLTrDo2f6+/nbdh/7u12ppo8zo8/ 6hw54hJrpjVaKt7bunPNh8Tvx7zVCh59FfD8tvFByHfzr0uWnyk+lW+6rbb24GvHGiWW4oxE Qy3mouJEAODxmADdAgAA X-CMS-MailID: 20221111062238epcas1p3418881a8f028e97afbb498645704c9c5 X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20221111062238epcas1p3418881a8f028e97afbb498645704c9c5 References: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749179966527891922?= X-GMAIL-MSGID: =?utf-8?q?1749179966527891922?= From: ChanWoo Lee It only checks true and false, so it can be used as a bool type. Signed-off-by: ChanWoo Lee --- drivers/ufs/core/ufshcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index fdbcbcf3f9d1..a5b6d6eacf83 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -8825,7 +8825,7 @@ static int ufshcd_set_dev_pwr_mode(struct ufs_hba *hba, static int ufshcd_link_state_transition(struct ufs_hba *hba, enum uic_link_state req_link_state, - int check_for_bkops) + bool check_for_bkops) { int ret = 0; @@ -8976,7 +8976,7 @@ static void ufshcd_hba_vreg_set_hpm(struct ufs_hba *hba) static int __ufshcd_wl_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op) { int ret = 0; - int check_for_bkops; + bool check_for_bkops; enum ufs_pm_level pm_lvl; enum ufs_dev_pwr_mode req_dev_pwr_mode; enum uic_link_state req_link_state;