From: Costa Tsaousis (ktsaou) Date: Sun, 19 Mar 2017 09:32:36 +0000 (+0200) Subject: freebsd coverity: 164802 Same on both sides X-Git-Tag: v1.6.0~3^2~3 X-Git-Url: https://arthur.ath.cx/gitweb/?a=commitdiff_plain;h=7154c7949671358591e421ca4ef4412f4469aeff;p=netdata.git freebsd coverity: 164802 Same on both sides --- diff --git a/src/freebsd_sysctl.c b/src/freebsd_sysctl.c index 37fc8e52..eca82228 100644 --- a/src/freebsd_sysctl.c +++ b/src/freebsd_sysctl.c @@ -3476,7 +3476,7 @@ int do_kern_devstat(int update_every, usec_t dt) { } if (unlikely(!enable_pass_devices)) - if (dstat[i].device_type & DEVSTAT_TYPE_PASS == DEVSTAT_TYPE_PASS) + if ((dstat[i].device_type & DEVSTAT_TYPE_PASS) == DEVSTAT_TYPE_PASS) continue; if (((dstat[i].device_type & DEVSTAT_TYPE_MASK) == DEVSTAT_TYPE_DIRECT) || ((dstat[i].device_type & DEVSTAT_TYPE_MASK) == DEVSTAT_TYPE_STORARRAY)) {