drivers/net/ethernet/qlogic/qed/qed_dcbx.c:210: pointless test ?

From: David Binderman
Date: Mon May 23 2016 - 07:11:36 EST


Hello there,

drivers/net/ethernet/qlogic/qed/qed_dcbx.c:210:16: warning: comparison
is always false due to limited range of data type [-Wtype-limits]

Source code is

if (priority < 0) {

but

u8 tc, priority, priority_map;


Regards

David Binderman