Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c Fix llvm build: error: equality comparison with ...



details:   https://anonhg.NetBSD.org/src/rev/c6a36c54888c
branches:  trunk
changeset: 989882:c6a36c54888c
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Oct 18 14:14:07 2021 +0000

description:
Fix llvm build: error: equality comparison with extraneous parentheses
[-Werror,-Wparentheses-equality]

diffstat:

 sys/dev/i2c/sensirion_voc_algorithm.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 23255cdd6f2f -r c6a36c54888c sys/dev/i2c/sensirion_voc_algorithm.c
--- a/sys/dev/i2c/sensirion_voc_algorithm.c     Mon Oct 18 11:40:56 2021 +0000
+++ b/sys/dev/i2c/sensirion_voc_algorithm.c     Mon Oct 18 14:14:07 2021 +0000
@@ -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 @@
     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 @@
     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;



Home | Main Index | Thread Index | Old Index