net/sfc/base: fix comparison always true warning
authorAndrew Rybchenko <arybchenko@solarflare.com>
Mon, 9 Apr 2018 11:58:57 +0000 (12:58 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Apr 2018 22:41:44 +0000 (00:41 +0200)
commit06619ede18663fe81bf7ebf49ec751210308d41e
treeac558be3efba43191a44f029e546f6c6ebf18f56
parentbd768ccfb1de659db7483fa05e968c72988c656f
net/sfc/base: fix comparison always true warning

Loopback type used as bit index has efx_loopback_type_t type
which is enum. clang complains that it is always true when it
is compared with qword (64 bit) bits number boundary.

Fixes: 9ee64bd404fc ("net/sfc/base: import loopback control")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/efx_port.c