aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bxe/bxe_elink.c
diff options
context:
space:
mode:
authorDavid C Somayajulu <davidcs@FreeBSD.org>2016-04-25 18:55:01 +0000
committerDavid C Somayajulu <davidcs@FreeBSD.org>2016-04-25 18:55:01 +0000
commit05c6aa727f0c35978447dfd3fea0afc6eda411cd (patch)
tree05f3f813b2ffd2ba1effa689273376f9398c2f5b /sys/dev/bxe/bxe_elink.c
parent676a03fa6aa5b1833f120c033a4f1f77c5e07227 (diff)
1. Removed -Wno-shift-negative-value from Makefile
2. Fixed warning its absence caused in bxe_elink.c MFC after:5 days
Notes
Notes: svn path=/head/; revision=298591
Diffstat (limited to 'sys/dev/bxe/bxe_elink.c')
-rw-r--r--sys/dev/bxe/bxe_elink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bxe/bxe_elink.c b/sys/dev/bxe/bxe_elink.c
index ad2718675d36..0ce0433598a0 100644
--- a/sys/dev/bxe/bxe_elink.c
+++ b/sys/dev/bxe/bxe_elink.c
@@ -11969,8 +11969,8 @@ static elink_status_t elink_54618se_config_init(struct elink_phy *phy,
elink_eee_disable(phy, params, vars);
}
} else {
- vars->eee_status &= ~SHMEM_EEE_1G_ADV <<
- SHMEM_EEE_SUPPORTED_SHIFT;
+ vars->eee_status &= ((uint32_t)(~SHMEM_EEE_1G_ADV) <<
+ SHMEM_EEE_SUPPORTED_SHIFT);
if (phy->flags & ELINK_FLAGS_EEE) {
/* Handle legacy auto-grEEEn */