On 3/7/24 23:02, peter.wang@xxxxxxxxxxxx wrote:
+static bool ufs_mtk_is_allow_vccqx_lpm(struct ufs_hba *hba) +{ + struct ufs_mtk_host *host = ufshcd_get_variant(hba); + + return !!(host->caps & UFS_MTK_CAP_ALLOW_VCCQX_LPM); +}
Please leave out the !!. The compiler does this for you when implicitly converting an int into a bool.
Thanks, Bart.