Re: [PATCH v1 1/7] ufs: host: mediatek: fix vsx/vccqx control logic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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.
> 

Hi Bart,

Will remove "!!" next version

Thanks.
Peter





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux