net/bnx2x: fix KR2 device check
authorAndy Green <andy@warmcat.com>
Mon, 14 May 2018 05:04:33 +0000 (13:04 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 15 May 2018 20:26:46 +0000 (22:26 +0200)
commitd9b8838ab2e90713827ee8843d836b0fccbaf2f7
tree94ead105099e2f52512ff35b3d50eeef5cc13d45
parentd88b346d9a75c7ec6c4c973e16920e5e5161bab9
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>
drivers/net/bnx2x/elink.c