Re: [PATCH v2 3/4] platform/x86/intel/ifs: Add SBAF test support

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

 




On 7/12/2024 2:51 AM, Ashok Raj wrote:
> On Thu, Jul 11, 2024 at 12:44:23PM +0300, Ilpo Järvinen wrote:
>>> +static bool sbaf_bundle_completed(union ifs_sbaf_status status)
>>> +{
>>> +	if (status.sbaf_status || status.error_code)
>>> +		return false;
>>> +	return true;
>>
>> This is same as:
>>
>> 	return !status.sbaf_status && !status.error_code;
>>
> 
> Maybe another simplification
> 
> 	return !(status.sbaf_status || status.error_code);
> 

Agree, this looks simpler


Jithu




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux