]> arthur.barton.de Git - netdata.git/blobdiff - src/freebsd_sysctl.c
freebsd coverity: 164802 Same on both sides
[netdata.git] / src / freebsd_sysctl.c
index 37fc8e5242b69ee2f1ad2c607d313e7cd1983cd2..eca8222819f4b4234300b2610fa1413b0582ab8c 100644 (file)
@@ -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)) {