blob: b1fd472e53aa7c0775a9f2c2a7f2b1a4aa83e5f8 [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/archive3/public/freebsd-releng-10.4-src/sys/dev/ic/i82586.h freebsd-10.4/sys/dev/ic/i82586.h
--- /var/archive3/public/freebsd-releng-10.4-src/sys/dev/ic/i82586.h 2017-09-29 08:19:50.000000000 +0800
+++ freebsd-10.4/sys/dev/ic/i82586.h 2019-08-17 23:21:42.446445814 +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;