[PATCH v1 1/7] ufs: host: mediatek: fix vsx/vccqx control logic
Peter Wang (王信友)
peter.wang at mediatek.com
Fri Mar 15 01:17:03 PDT 2024
On Thu, 2024-03-14 at 19:33 -0700, Bart Van Assche wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 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.
>
Hi Bart,
Will remove "!!" next version
Thanks.
Peter
More information about the Linux-mediatek
mailing list