[PATCH v1 1/7] ufs: host: mediatek: fix vsx/vccqx control logic
Bart Van Assche
bvanassche at acm.org
Thu Mar 14 19:33:16 PDT 2024
On 3/7/24 23:02, peter.wang at mediatek.com 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.
More information about the Linux-mediatek
mailing list