blob: c4d8088bae96a28d1a517e41b8af54af975cdb16 [file] [log] [blame] [raw]
Fix gcc(1) warning "suggest parentheses around operand of '!' or change '|' to '||' or '!' to '~'".
diff -ru --exclude-from freebsd-src-diff-exclude-names /var/tmp/freebsd-10.3-src/usr/src/sys/dev/ic/i82586.h freebsd-10.3/usr/src/sys/dev/ic/i82586.h
--- /var/tmp/freebsd-10.3-src/usr/src/sys/dev/ic/i82586.h 2016-03-25 09:09:38.000000000 +0800
+++ freebsd-10.3/usr/src/sys/dev/ic/i82586.h 2019-05-15 12:17:28.723685480 +0800
@@ -303,7 +303,7 @@
cmd->ie_ifs = 0x60;
cmd->ie_slot_low = 0;
cmd->ie_slot_high = 0xf2;
- cmd->ie_promisc = !!promiscuous | manchester << 2;
+ cmd->ie_promisc = (!!promiscuous) | (manchester << 2);
cmd->ie_crs_cdt = 0;
cmd->ie_min_len = 64;
cmd->ie_junk = 0xff;