summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2018-05-14 13:04:33 +0800
committerThomas Monjalon <thomas@monjalon.net>2018-05-15 22:26:46 +0200
commitd9b8838ab2e90713827ee8843d836b0fccbaf2f7 (patch)
tree94ead105099e2f52512ff35b3d50eeef5cc13d45
parentd88b346d9a75c7ec6c4c973e16920e5e5161bab9 (diff)
downloaddpdk-d9b8838ab2e90713827ee8843d836b0fccbaf2f7.zip
dpdk-d9b8838ab2e90713827ee8843d836b0fccbaf2f7.tar.gz
dpdk-d9b8838ab2e90713827ee8843d836b0fccbaf2f7.tar.xz
net/bnx2x: fix KR2 device check
In function ‘elink_check_kr2_wa’: drivers/net/bnx2x/elink.c:12922:28: error: bitwise comparison always evaluates to false [-Werror=tautological-compare] ((next_page & 0xe0) == 0x2)))); This was fixed elsewhere in 2014 Fixes: b5bf7719221d ("bnx2x: driver support routines") Cc: stable@dpdk.org Signed-off-by: Andy Green <andy@warmcat.com> Acked-by: Rasesh Mody <rasesh.mody@cavium.com>
-rw-r--r--drivers/net/bnx2x/elink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2x/elink.c b/drivers/net/bnx2x/elink.c
index cceae6f..74e1bea 100644
--- a/drivers/net/bnx2x/elink.c
+++ b/drivers/net/bnx2x/elink.c
@@ -12921,7 +12921,7 @@ static void elink_check_kr2_wa(struct elink_params *params,
*/
not_kr2_device = (((base_page & 0x8000) == 0) ||
(((base_page & 0x8000) &&
- ((next_page & 0xe0) == 0x2))));
+ ((next_page & 0xe0) == 0x20))));
/* In case KR2 is already disabled, check if we need to re-enable it */
if (!(vars->link_attr_sync & LINK_ATTR_SYNC_KR2_ENABLE)) {