]> arthur.barton.de Git - netdata.git/commitdiff
freebsd coverity: 164802 Same on both sides
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 19 Mar 2017 09:32:36 +0000 (11:32 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sun, 19 Mar 2017 09:32:36 +0000 (11:32 +0200)
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)) {