Re: [PATCH v4 07/31] elx: libefc_sli: APIs to setup SLI library

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

 



On Mon, Oct 12, 2020 at 03:51:23PM -0700, James Smart wrote:
> +bool
> +sli_fw_ready(struct sli4 *sli4)
> +{

Why is this and the following function returning a bool? I ask because
the rest of the code uses EFC_FAIL/EFC_SUCCESS. The bool and the EFC_
are defined opposite in their meaning thus we have inconsistent code
patterns:

		if (sli_fw_ready(sli4))
			return true;
vs:

		if (sli_request_features(sli4, &sli4->features, true))
			return EFC_FAIL;


The rest looks good.
Reviewed-by: Daniel Wagner <dwagner@xxxxxxx>



[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