Re: [PATCH] elx: efct: fix is_originator return code type

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

 



James,

> efct_hw_iotype_is_originator is returning a negative (-EIO) status
> which doesn't make sense for a u8 function type.
>
> Reviewing the code, the function only needs to return true/false, thus
> a bool status is most appropriate.
>
> Change the function return type and patch up the one callee as the
> bool inverses the if check.

Applied to 5.14/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering



[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