freebsd coverity: 164802 Same on both sides
Costa Tsaousis (ktsaou) committed
Mar 19, 2017 at 11:32 UTC
7154c7949671358591e421ca4ef4412f4469aeff
1 file changed
+1
-1
src/freebsd_sysctl.c
+1
-1
@@ -3476,7 +3476,7 @@ int do_kern_devstat(int update_every, usec_t dt) {
3476
}
3477
3478
if (unlikely(!enable_pass_devices))
3479
- if (dstat[i].device_type & DEVSTAT_TYPE_PASS == DEVSTAT_TYPE_PASS)
3479
+ if ((dstat[i].device_type & DEVSTAT_TYPE_PASS) == DEVSTAT_TYPE_PASS)
3480
continue;
3481
3482
if (((dstat[i].device_type & DEVSTAT_TYPE_MASK) == DEVSTAT_TYPE_DIRECT) || ((dstat[i].device_type & DEVSTAT_TYPE_MASK) == DEVSTAT_TYPE_STORARRAY)) {