Fix llvm build: error: equality comparison with extraneous parentheses

[-Werror,-Wparentheses-equality]
This commit is contained in:
christos 2021-10-18 14:14:07 +00:00
parent 9edf7099a4
commit ef513097b6
1 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,4 @@
/*
* $NetBSD: sensirion_voc_algorithm.c,v 1.1 2021/10/14 13:54:46 brad Exp $
/* $NetBSD: sensirion_voc_algorithm.c,v 1.2 2021/10/18 14:14:07 christos Exp $
*/
/*
@ -599,7 +598,7 @@ static void VocAlgorithm__mean_variance_estimator__process(
fix16_t c;
fix16_t additional_scaling;
if ((params->m_Mean_Variance_Estimator___Initialized == false)) {
if (!params->m_Mean_Variance_Estimator___Initialized) {
params->m_Mean_Variance_Estimator___Initialized = true;
params->m_Mean_Variance_Estimator___Sraw_Offset = sraw;
params->m_Mean_Variance_Estimator___Mean = F16(0.);
@ -776,7 +775,7 @@ VocAlgorithm__adaptive_lowpass__process(VocAlgorithmParams* params,
fix16_t tau_a;
fix16_t a3;
if ((params->m_Adaptive_Lowpass___Initialized == false)) {
if (!params->m_Adaptive_Lowpass___Initialized) {
params->m_Adaptive_Lowpass___X1 = sample;
params->m_Adaptive_Lowpass___X2 = sample;
params->m_Adaptive_Lowpass___X3 = sample;